| @@ 27-35 (lines=9) @@ | ||
| 24 | */ | |
| 25 | private $weight; | |
| 26 | ||
| 27 | public function __construct($attributes = null) | |
| 28 |     { | |
| 29 | $this->setUnitOfMeasurement(new UnitOfMeasurement( | |
| 30 | isset($attributes->UnitOfMeasurement) ? $attributes->UnitOfMeasurement : null | |
| 31 | )); | |
| 32 |         if (isset($attributes->Weight)) { | |
| 33 | $this->setWeight($attributes->Weight); | |
| 34 | } | |
| 35 | } | |
| 36 | ||
| 37 | /** | |
| 38 | * @param null|DOMDocument $document | |
| @@ 14-26 (lines=13) @@ | ||
| 11 | private $unitOfMeasurement; | |
| 12 | private $weight; | |
| 13 | ||
| 14 | public function __construct($response = null) | |
| 15 |     { | |
| 16 | $this->setUnitOfMeasurement(new UnitOfMeasurement()); | |
| 17 | ||
| 18 |         if (null !== $response) { | |
| 19 |             if (isset($response->UnitOfMeasurement)) { | |
| 20 | $this->setUnitOfMeasurement(new UnitOfMeasurement($response->UnitOfMeasurement)); | |
| 21 | } | |
| 22 |             if (isset($response->Weight)) { | |
| 23 | $this->setWeight($response->Weight); | |
| 24 | } | |
| 25 | } | |
| 26 | } | |
| 27 | ||
| 28 | /** | |
| 29 | * @param null|DOMDocument $document | |
| @@ 22-32 (lines=11) @@ | ||
| 19 | */ | |
| 20 | private $weight; | |
| 21 | ||
| 22 | public function __construct($response = null) | |
| 23 |     { | |
| 24 |         if (null !== $response) { | |
| 25 |             if (isset($response->unitOfMeasurement)) { | |
| 26 | $this->setUnitOfMeasurement(new UnitOfMeasurement($response->unitOfMeasurement)); | |
| 27 | } | |
| 28 |             if (isset($response->Weight)) { | |
| 29 | $this->setWeight($response->Weight); | |
| 30 | } | |
| 31 | } | |
| 32 | } | |
| 33 | ||
| 34 | /** | |
| 35 | * @param null|DOMDocument $document | |