示例#1
0
 /**
  * RealexClient constructor.
  *
  * @param string $secret
  * @param HttpClient $httpClient
  * @param HttpConfiguration $httpConfiguration
  */
 public function __construct($secret, HttpConfiguration $httpConfiguration = null, HttpClient $httpClient = null)
 {
     $this->logger = RXPLogger::getLogger(__CLASS__);
     $this->secret = $secret;
     if (is_null($httpConfiguration)) {
         $this->httpConfiguration = new HttpConfiguration();
     } else {
         $this->httpConfiguration = $httpConfiguration;
     }
     if (is_null($httpClient)) {
         $this->httpClient = HttpUtils::getDefaultClient($this->httpConfiguration);
     } else {
         $this->httpClient = $httpClient;
     }
 }