/**
  * @param string $issuerID
  * @param Merchant $merchant
  * @param Transaction $transaction
  */
 public function __construct($issuerID, Merchant $merchant, Transaction $transaction)
 {
     parent::__construct();
     $this->issuerID = $issuerID;
     $this->merchant = $merchant;
     $this->transaction = $transaction;
 }
Beispiel #2
0
 public function __construct($datasourceName, $sequenceName, $quantity = 1)
 {
     parent::__construct();
     $this->datasourceName = $datasourceName;
     $this->sequenceName = $sequenceName;
     $this->quantity = $quantity;
 }
 /**
  * @param $url          string      The URL
  * @param $method       string      GET (default), POST, PUT, PATCH or DELETE
  * @param $urlVariables array       The value of the URL variables contained in the URL template
  * @param $messageBody  MessageBody The messageBody to send with the request
  * @param $headers      array       Optional headers
  */
 public function __construct($url, $method = 'GET', array $urlVariables = array(), MessageBody $messageBody = null, array $headers = array())
 {
     parent::__construct($method, $urlVariables, $messageBody, $headers);
     // Validate the URL
     $url = trim($url);
     if (!$url) {
         throw new \InvalidArgumentException('URL is empty.');
     }
     $this->url = $url;
 }
 public function __construct($sourceName) {
     parent::__construct();
     $this->sourceName = $sourceName;
 }
 public function __construct(array $data = null)
 {
     $this->pagination = new Pagination();
     parent::__construct($data);
 }
 public function __construct($datasetName) {
     parent::__construct();
     $this->datasetName = $datasetName;
 }
Beispiel #7
0
 /**
  * Request to the gravatar.com for the JSON profile data
  *
  * @param Account $account Gravatar account
  * @param string $callback Callback name
  */
 public function __construct(Account $account, $callback = "")
 {
     parent::__construct($account, "json");
     $this->query["callback"] = $callback;
 }
Beispiel #8
0
 /**
  * Request to the gravatar.com for the xml profile data
  * 
  * @param Account $account Gravatar account
  */
 public function __construct(Account $account)
 {
     parent::__construct($account, "xml");
 }
 public function __construct($httpClient, $httpRequest)
 {
     parent::__construct($httpClient, $httpRequest);
     $this->setApiMethod('refund');
 }
Beispiel #10
0
 /**
  * @param Merchant $merchant
  */
 public function __construct(Merchant $merchant)
 {
     parent::__construct();
     $this->merchant = $merchant;
 }
 /**
  * Constructor for a request.
  * @param string $controller The controller being requested.
  * @param string $action The action being invoked.
  * @param string $verb The HTTP verb used in the request.
  */
 public function __construct($controller, $action, $verb)
 {
     parent::__construct($controller, $action);
     $this->setVerb($verb);
     $this->input = array(self::INPUT_METHOD_QUERY => array(), self::INPUT_METHOD_POST => array());
 }
Beispiel #12
0
 public function __construct($base_url, array $payload_fields, array $query_arguments = null)
 {
     parent::__construct($base_url, $query_arguments);
     $this->setCurlOption(CURLOPT_POST, sizeof($payload_fields) ? sizeof($payload_fields) : 1);
     $this->setCurlOption(CURLOPT_POSTFIELDS, $payload_fields);
 }
 public function __construct(\Guzzle\Http\ClientInterface $httpClient, \Symfony\Component\HttpFoundation\Request $httpRequest)
 {
     parent::__construct($httpClient, $httpRequest);
     $endpoint = $this->endpointBalance;
     $this->setEndpoint($endpoint);
 }
 public function __construct($datasetName, AbstractRecordsHolder $recordsHolder) {
     parent::__construct();
     $this->datasetName = $datasetName;
     $this->recordsHolder = $recordsHolder;
 }
 /**
  * @param string $subscriberRef
  */
 public function __construct($subscriberRef)
 {
     parent::__construct($subscriberRef);
 }
Beispiel #16
0
 /**
  * Request to the gravatar.com for the QR profile data
  *
  * @param Account $account Gravatar account
  * @param int|null $size Size of QR image
  */
 public function __construct(Account $account, $size = null)
 {
     parent::__construct($account, "qr");
     $this->query['size'] = $size;
 }