/** * ItemAttributes constructor. * * @param array $raw */ public function __construct(array $raw) { parent::__construct($raw); foreach ($raw as $key => $val) { $this->attributes[$key] = $val; } }
/** * Item constructor. * * @param array $raw */ public function __construct(array $raw) { parent::__construct($raw); $this->asin = $this->get('ASIN'); $this->detailPageUrl = $this->get('DetailPageURL'); $this->itemLinks = $this->parseItemLinks($this->get('ItemLinks.ItemLink', [])); $this->itemAttributes = $this->parseItemAttributes($this->get('ItemAttributes', [])); $this->offerSummary = $this->parseOfferSummary($this->get('OfferSummary', [])); $this->offers = $this->parseOffers($this->get('Offers.Offer', [])); }
/** * ItemLink constructor. * * @param array $link */ public function __construct(array $link) { parent::__construct($link); $this->description = $this->get('Description'); $this->url = $this->get('URL'); }