Esempio n. 1
0
 /**
  * Price constructor.
  *
  * @param array $raw
  */
 public function __construct(array $raw)
 {
     parent::__construct($raw);
     $this->amount = (int) $this->get('Amount') ?: null;
     $this->currencyCode = $this->get('CurrencyCode');
     $this->formattedPrice = $this->get('FormattedPrice');
 }
Esempio n. 2
0
 /**
  * @param array $raw
  */
 public function __construct(array $raw)
 {
     parent::__construct($raw);
     $this->merchant = new Merchant($this->get('Merchant', []));
     $this->offerAttributes = new ItemAttributes($this->get('OfferAttributes'));
     $this->offerListing = new OfferListing($this->get('OfferListing', []));
 }
 /**
  * AvailabilityAttributes constructor.
  *
  * @param array $raw
  */
 public function __construct(array $raw = [])
 {
     parent::__construct($raw);
     $this->availabilityType = $this->get('AvailabilityType');
     $this->minimumHours = (int) $this->get('MinimumHours') ?: null;
     $this->maximumHours = (int) $this->get('MaximumHours') ?: null;
 }
Esempio n. 4
0
 /**
  * @param array $raw
  */
 public function __construct(array $raw)
 {
     parent::__construct($raw);
     $this->lowestNewPrice = new Price($this->get('LowestNewPrice', []));
     $this->totalNew = (int) $this->get('TotalNew') ?: null;
     $this->totalUsed = (int) $this->get('TotalUsed') ?: null;
     $this->totalCollectible = (int) $this->get('TotalCollectible') ?: null;
     $this->totalRefurbished = (int) $this->get('TotalRefurbished') ?: null;
 }
Esempio n. 5
0
 /**
  * OfferListing constructor.
  *
  * @param array $raw
  */
 public function __construct(array $raw = [])
 {
     parent::__construct($raw);
     $this->salePrice = new Price($this->get('SalePrice', []));
     $this->amountSaved = new Price($this->get('AmountSaved', []));
     $this->percentageSaved = (int) $this->get('PercentageSaved', 0);
     $this->availability = $this->get('Availability');
     $this->availabilityAttributes = new AvailabilityAttributes($this->get('AvailabilityAttributes'));
     $this->isEligibleForSuperSaverShipping = $this->get('IsEligibleForSuperSaverShipping') != '0';
     $this->isEligibleForPrime = $this->get('IsEligibleForPrime') != '0';
 }
Esempio n. 6
0
 public function __construct(array $datas = [])
 {
     parent::__construct($datas);
     $this->skipResult();
 }
Esempio n. 7
0
 public function __construct($properties = null)
 {
     parent::__construct($this->convertNameProperties($properties));
 }
Esempio n. 8
0
 /**
  * Merchant constructor.
  *
  * @param array $raw
  */
 public function __construct(array $raw = [])
 {
     parent::__construct($raw);
     $this->name = $this->get('Name');
 }
 /**
  * @param Pdffiller $client
  * @param int $signatureRequestId
  */
 public function __construct(Pdffiller $client, $signatureRequestId)
 {
     parent::__construct($client);
     $this->fillRequestId = $signatureRequestId;
 }
Esempio n. 10
0
 function __construct(array $data = array())
 {
     $this->projetos = new ArrayCollection();
     return parent::__construct($data);
 }
Esempio n. 11
0
 public function __construct()
 {
     parent::__construct();
     $this->_types["int"][] = "id";
     $this->_types["string"][] = "name";
 }
Esempio n. 12
0
 public function __construct()
 {
     parent::__construct();
     $this->commentedAt = \SKS\UTIL\DateUtil::getCurrentDateTime();
 }