|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * DO NOT EDIT THIS FILE! |
| 4 | + * |
| 5 | + * This file was automatically generated from external sources. |
| 6 | + * |
| 7 | + * Any manual change here will be lost the next time the SDK |
| 8 | + * is updated. You've been warned! |
| 9 | + */ |
| 10 | + |
| 11 | +namespace DTS\eBaySDK\Inventory\Types; |
| 12 | + |
| 13 | +use DTS\eBaySDK\StatusCodeTrait; |
| 14 | +use DTS\eBaySDK\HttpHeadersTrait; |
| 15 | + |
| 16 | +/** |
| 17 | + * |
| 18 | + * @property \DTS\eBaySDK\Inventory\Types\ErrorDetailV3[] $errors |
| 19 | + * @property \DTS\eBaySDK\Inventory\Types\ErrorDetailV3[] $warnings |
| 20 | + */ |
| 21 | +class WithdrawOfferRestResponse extends \DTS\eBaySDK\Inventory\Types\WithdrawResponse |
| 22 | +{ |
| 23 | + use StatusCodeTrait; |
| 24 | + use HttpHeadersTrait; |
| 25 | + |
| 26 | + /** |
| 27 | + * @var array Properties belonging to objects of this class. |
| 28 | + */ |
| 29 | + private static $propertyTypes = [ |
| 30 | + 'errors' => [ |
| 31 | + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', |
| 32 | + 'repeatable' => true, |
| 33 | + 'attribute' => false, |
| 34 | + 'elementName' => 'errors' |
| 35 | + ], |
| 36 | + 'warnings' => [ |
| 37 | + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', |
| 38 | + 'repeatable' => true, |
| 39 | + 'attribute' => false, |
| 40 | + 'elementName' => 'warnings' |
| 41 | + ] |
| 42 | + ]; |
| 43 | + |
| 44 | + /** |
| 45 | + * @param array $values Optional properties and values to assign to the object. |
| 46 | + * @param int $statusCode Status code |
| 47 | + * @param array $headers HTTP Response headers. |
| 48 | + */ |
| 49 | + public function __construct(array $values = [], $statusCode = 200, array $headers = []) |
| 50 | + { |
| 51 | + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); |
| 52 | + |
| 53 | + parent::__construct($parentValues); |
| 54 | + |
| 55 | + if (!array_key_exists(__CLASS__, self::$properties)) { |
| 56 | + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); |
| 57 | + } |
| 58 | + |
| 59 | + $this->setValues(__CLASS__, $childValues); |
| 60 | + |
| 61 | + $this->statusCode = (int)$statusCode; |
| 62 | + |
| 63 | + $this->setHeaders($headers); |
| 64 | + } |
| 65 | +} |
0 commit comments