public function __construct(Topic $topic, Post $post, User $user = null) { $this->topic = $topic; $this->post = $post; $this->user = $user; }