/** * 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'); }
/** * @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; }
/** * @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; }
/** * 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'; }
public function __construct(array $datas = []) { parent::__construct($datas); $this->skipResult(); }
public function __construct($properties = null) { parent::__construct($this->convertNameProperties($properties)); }
/** * 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; }
function __construct(array $data = array()) { $this->projetos = new ArrayCollection(); return parent::__construct($data); }
public function __construct() { parent::__construct(); $this->_types["int"][] = "id"; $this->_types["string"][] = "name"; }
public function __construct() { parent::__construct(); $this->commentedAt = \SKS\UTIL\DateUtil::getCurrentDateTime(); }