User posts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user