| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | class AmountInPennies implements IAmount |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private int $amount; |
||
| 25 | |||
| 26 | 9 | public function __construct(int $amount) |
|
| 27 | { |
||
| 28 | 9 | $this->amount = $amount; |
|
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | 10 | public function getParamName(): string |
|
| 33 | { |
||
| 34 | 10 | return Param::AMOUNT; |
|
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | 1 | public function getValue(): int |
|
| 41 | } |
||
| 42 | |||
| 43 | |||
| 44 | 10 | public function __toString(): string |
|
| 49 |