user = $user; $this->userId = $userId; $this->password = $password; } public function toArray(): array { return [ 'user' => $this->user, 'userId' => $this->userId, 'password' => $this->password ]; } public function getActivityEventModel() { return $this->user; } }