| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class Currency implements IParam |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var CurrencyEnum |
||
| 24 | */ |
||
| 25 | private $value; |
||
| 26 | |||
| 27 | 9 | public function __construct(CurrencyEnum $currency) |
|
| 28 | { |
||
| 29 | 9 | $this->value = $currency; |
|
| 30 | } |
||
| 31 | |||
| 32 | 10 | public function __toString(): string |
|
| 33 | { |
||
| 34 | 10 | return (string)$this->value; |
|
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | 11 | public function getParamName(): string |
|
| 39 | { |
||
| 40 | 11 | return Param::CURRENCY; |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return CurrencyEnum |
||
| 45 | */ |
||
| 46 | 1 | public function getValue(): CurrencyEnum |
|
| 49 | } |
||
| 50 | } |
||
| 51 |