mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 07:18:17 +02:00
Create UserDeletedRepository
This commit is contained in:
parent
83f561ea49
commit
43a32d1894
2 changed files with 68 additions and 0 deletions
27
src/Database/Repository/UserDeletedRepository.php
Normal file
27
src/Database/Repository/UserDeletedRepository.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
// Copyright (C) 2010-2024, the Friendica project
|
||||
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Friendica\Database\Repository;
|
||||
|
||||
use Friendica\Database\Database;
|
||||
|
||||
final class UserDeletedRepository
|
||||
{
|
||||
private Database $database;
|
||||
|
||||
public function __construct(Database $database)
|
||||
{
|
||||
$this->database = $database;
|
||||
}
|
||||
|
||||
public function existsByUsername(string $username): bool
|
||||
{
|
||||
return $this->database->exists('userd', ['username' => $username]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue