Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function __construct(\SimpleXMLElement $response)
 {
     parent::__construct($response);
     if (!empty($response->Item)) {
         $this->item = $response->Item;
         $this->listing_status = (string) $this->item->SellingStatus->ListingStatus;
     }
 }
 /**
  * @inheritdoc
  */
 public function __construct(\SimpleXMLElement $response)
 {
     parent::__construct($response);
     $this->response = $response;
     $this->count = XmlHelper::getAsInt($response, 'CategoryCount');
     $this->min_reserve_price = XmlHelper::getAsDouble($response, 'MinimumReservePrice');
     $this->reduce_reserve_allowed = XmlHelper::getAsBoolean($response, 'ReduceReserveAllowed');
     $this->reserve_price_allowed = XmlHelper::getAsBoolean($response, 'ReservePriceAllowed');
     $this->update_time = XmlHelper::getAsString($response, 'UpdateTime');
 }
 /**
  * @inheritdoc
  */
 public function __construct(\SimpleXMLElement $response)
 {
     parent::__construct($response);
     $this->response = $response;
     if (!empty($response->ShippingLocationDetails)) {
         $this->shipping_location_details = array();
         foreach ($response->ShippingLocationDetails as $item) {
             $this->shipping_location_details[(string) $item->ShippingLocation] = array('code' => XmlHelper::getAsString($item, 'ShippingLocation'), 'name' => XmlHelper::getAsString($item, 'Description'), 'time' => XmlHelper::getAsString($item, 'UpdateTime'));
         }
     }
 }
 /**
  * @inheritdoc
  */
 public function __construct(\SimpleXMLElement $response)
 {
     parent::__construct($response);
     $this->response = $response;
 }