This commit is contained in:
2024-07-23 01:22:16 +02:00
parent 85d20e034a
commit 1bff7f46d7
9 changed files with 40 additions and 12 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ use Exception;
use PDO;
use DateTime;
use Khofmann\Database\Database;
use Config\Config;
use Khofmann\Config\Config;
use JsonSerializable;
use Khofmann\ApiError\ApiError;
use Khofmann\GUID\GUID;
@@ -23,7 +23,7 @@ class User implements JsonSerializable
private DateTime $memberSince;
private int $postCount;
protected function __construct(int $id, string $username, int $status, string $email, string $timestamp, ?string $image, bool $isAdmin, int $postCount)
private function __construct(int $id, string $username, int $status, string $email, string $timestamp, ?string $image, bool $isAdmin, int $postCount)
{
$this->id = $id;
$this->username = $username;