| 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 $timestamp; |
||
| 21 | |||
| 22 | |||
| 23 | public function __construct(string $amt, string $vs) |
||
| 29 | |||
| 30 | public function setAmount($amt) : IPayment |
||
| 38 | |||
| 39 | public function getAmount() : string |
||
| 43 | |||
| 44 | public function setVariableSymbol(string $vs) : Payment |
||
| 52 | |||
| 53 | public function getVariableSymbol() : string |
||
| 57 | |||
| 58 | public function getCurrency() : string |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @internal |
||
| 65 | */ |
||
| 66 | public function setTimestamp(string $timestamp) : Payment |
||
| 74 | |||
| 75 | public function getTimestamp() : string |
||
| 79 | |||
| 80 | |||
| 81 | private static function normalizeCurrency(string $curr) : string |
||
| 89 | } |
||
| 90 |