requestType = $requestType; $this->triggerType = $triggerType; $this->userName = $userName; $this->userPhone = $userPhone; $this->userBirthday = $userBirthday; $this->sessionKey = $sessionKey; $this->successCallbackUrl = $successCallbackUrl; $this->failCallbackUrl = $failCallbackUrl; $this->nonce = $nonce; $this->expireSeconds = $expireSeconds; } public function __set($name, $value) { $this->{$name} = $value; } public function __get($name): mixed { return ($this->{$name} ?? null); } public function toArray(): array { return array_filter(call_user_func('get_object_vars', $this)); } }