@@ 26-36 (lines=11) @@ | ||
23 | */ |
|
24 | private $monetaryValue; |
|
25 | ||
26 | public function __construct($response = null) |
|
27 | { |
|
28 | if (null != $response) { |
|
29 | if (isset($response->CurrencyCode)) { |
|
30 | $this->setCurrencyCode($response->CurrencyCode); |
|
31 | } |
|
32 | if (isset($response->MonetaryValue)) { |
|
33 | $this->setMonetaryValue($response->MonetaryValue); |
|
34 | } |
|
35 | } |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * @param null|DOMDocument $document |
@@ 14-24 (lines=11) @@ | ||
11 | private $currencyCode; |
|
12 | private $monetaryValue; |
|
13 | ||
14 | public function __construct($response = null) |
|
15 | { |
|
16 | if (null != $response) { |
|
17 | if (isset($response->CurrencyCode)) { |
|
18 | $this->setCurrencyCode($response->CurrencyCode); |
|
19 | } |
|
20 | if (isset($response->MonetaryValue)) { |
|
21 | $this->setMonetaryValue($response->MonetaryValue); |
|
22 | } |
|
23 | } |
|
24 | } |
|
25 | ||
26 | /** |
|
27 | * @param null|DOMDocument $document |
@@ 21-31 (lines=11) @@ | ||
18 | */ |
|
19 | protected $description; |
|
20 | ||
21 | public function __construct($attributes = null) |
|
22 | { |
|
23 | if (null != $attributes) { |
|
24 | if (isset($attributes->MonetaryValue)) { |
|
25 | $this->setMonetaryValue($attributes->MonetaryValue); |
|
26 | } |
|
27 | if (isset($attributes->Description)) { |
|
28 | $this->setDescription($attributes->Description); |
|
29 | } |
|
30 | } |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * @param null|DOMDocument $document |