| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | trait Currency |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @inheritDoc |
||
| 17 | */ |
||
| 18 | public function getCurrency(): ?string |
||
| 19 | { |
||
| 20 | return $this->parameters['currency'] ?? null; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Sets the currency. |
||
| 25 | * |
||
| 26 | * @param string $currency The transaction ID. |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | public function setCurrency(string $currency): self |
||
| 33 | } |
||
| 34 | } |
||
| 35 |