1 | <?php |
||
10 | final class InquiryResponse extends AbstractResponse |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $status; |
||
16 | |||
17 | /** |
||
18 | * @var string|null |
||
19 | */ |
||
20 | private $discount = null; |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function __construct($parameters) |
||
26 | { |
||
27 | parent::__construct($parameters); |
||
28 | |||
29 | $this->status = $this->filteredParameters['STATUS']; |
||
30 | |||
31 | if (array_key_exists('REMISE', $this->filteredParameters)) { |
||
32 | $this->discount = $this->filteredParameters['REMISE']; |
||
33 | } |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getStatus() |
||
43 | |||
44 | /** |
||
45 | * @return string|null |
||
46 | */ |
||
47 | public function getDiscount() |
||
51 | } |
||
52 |