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