Exemplo n.º 1
0
 /**
  * ItemAttributes constructor.
  *
  * @param array $raw
  */
 public function __construct(array $raw)
 {
     parent::__construct($raw);
     foreach ($raw as $key => $val) {
         $this->attributes[$key] = $val;
     }
 }
Exemplo n.º 2
0
 /**
  * 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', []));
 }
Exemplo n.º 3
0
 /**
  * ItemLink constructor.
  *
  * @param array $link
  */
 public function __construct(array $link)
 {
     parent::__construct($link);
     $this->description = $this->get('Description');
     $this->url = $this->get('URL');
 }