![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/vendor/openpay/sdk/Openpay/Data/ |
<?php namespace Openpay\Data; use Exception; class OpenpayApiError extends Exception { protected $description; protected $error_code; protected $category; protected $http_code; protected $request_id; protected $fraud_rules; public function __construct($message = null, $error_code = null, $category = null, $request_id = null, $http_code = null, $fraud_rules = null) { parent::__construct($message, $error_code); $this->description = $message; $this->error_code = isset($error_code) ? $error_code : 0; $this->category = isset($category) ? $category : ''; $this->http_code = isset($http_code) ? $http_code : 0; $this->request_id = isset($request_id) ? $request_id : ''; $this->fraud_rules = isset($fraud_rules) ? $fraud_rules : array(); } public function getDescription() { return $this->description; } public function getErrorCode() { return $this->error_code; } public function getCategory() { return $this->category; } public function getHttpCode() { return $this->http_code; } public function getRequestId() { return $this->request_id; } public function getFraudRules() { return $this->fraud_rules; } }