User posts

This commit is contained in:
2024-07-27 22:53:27 +02:00
parent a3ec9ae318
commit a950f6770a
6 changed files with 155 additions and 4 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class Post implements JsonSerializable
private string $content;
private DateTime $postedAt;
private function __construct(int $id, ?User $user, ?string $name, ?string $image, string $content, string $postedAt)
public function __construct(int $id, ?User $user, ?string $name, ?string $image, string $content, string $postedAt)
{
$this->id = $id;
$this->user = $user;