$value) { if (property_exists($this, $key)) { $this->$key = $value; $this->exports[] = $key; } } } /** * @return string */ public function getSessionId() { return $this->session_id; } /** * @return string */ public function getClientToken() { return $this->client_token; } /** * @return int */ public function getResponseCode() { return $this->response_code; } /** * @return string */ public function getOrderId() { return $this->order_id; } /** * @return string */ public function getRedirectUrl() { return $this->redirect_url; } /** * @return array */ public function getPaymentMethodCategories() { return $this->payment_method_categories; } /** * @return int */ public function getFraudStatus() { return $this->fraud_status; } /** * @return bool */ public function isSuccessfull() { return in_array($this->response_code, [200, 201, 204], false); } /** * @return string */ public function getMessage() { return $this->message; } }