Example #1
0
 /**
  * @inheritDoc
  * @param string $secretCode
  */
 public function __construct($secretCode, $wsdl, array $options = array())
 {
     Assert::that($secretCode, null, 'secretCode')->notEmpty()->string();
     if (empty($options['classmap'])) {
         $options['classmap'] = static::$classMap;
     } else {
         foreach (static::$classMap as $soapType => $phpType) {
             if (!isset($options['classmap'][$soapType])) {
                 $options['classmap'][$soapType] = $phpType;
             }
         }
     }
     if (!isset($options['exceptions'])) {
         $options['exceptions'] = false;
     }
     parent::__construct($wsdl, $options);
     $this->secret = $secretCode;
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function __construct($secret, array $options = array(), $wsdl = 'https://connect.icepay.com/webservice/refund.svc?wsdl')
 {
     parent::__construct($secret, $wsdl, $options);
 }