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