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