public function __construct($userId, User $actor) { $this->userId = $userId; $this->actor = $actor; }