1 | <?php |
||
8 | 1 | class Payment implements IPayment |
|
9 | { |
||
10 | /** @var string */ |
||
11 | protected $amt; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $vs; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $curr = '978'; // EUR |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $name; |
||
21 | |||
22 | /** @var bool */ |
||
23 | protected $tpay = false; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $timestamp; |
||
27 | |||
28 | |||
29 | public function __construct(string $amt, string $vs, string $name) |
||
36 | |||
37 | public function setAmount($amt) : IPayment |
||
45 | |||
46 | public function getAmount() : string |
||
50 | |||
51 | public function setVariableSymbol(string $vs) : Payment |
||
59 | |||
60 | public function getVariableSymbol() : string |
||
64 | |||
65 | public function setCurrency(string $curr) : Payment |
||
75 | |||
76 | public function getCurrency() : string |
||
80 | |||
81 | public function setName(string $name) : Payment |
||
89 | |||
90 | public function getName() : string |
||
94 | |||
95 | /** |
||
96 | * @internal |
||
97 | */ |
||
98 | public function setTimestamp(string $timestamp) : Payment |
||
106 | |||
107 | public function getTimestamp() : string |
||
111 | |||
112 | public function setTpay(bool $tpay = true) : Payment |
||
120 | |||
121 | public function getTpay() : bool |
||
125 | |||
126 | |||
127 | private static function normalizeCurrency(string $curr) : string |
||
142 | } |
||
143 |