public function __construct($title, $content, $receiver, $id_author, $my_picture, $id, $date, $likes) { $this->title = $title; $this->content = $content; $this->id_receiver = $receiver; $this->id_author = $id_author; $this->picture = $my_picture; $this->id = $id; $this->date = $date; $this->likes = $likes; $this->comments_number = CommentManager::get_comments_number($id); $this->comments = new CommentFactory($id); }