Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
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 | public function __construct(int $amount) |
||
27 | { |
||
28 | $this->amount = $amount; |
||
29 | } |
||
30 | |||
31 | |||
32 | public function getParamName(): string |
||
33 | { |
||
34 | return Param::AMOUNT; |
||
35 | } |
||
36 | |||
37 | |||
38 | public function getValue(): int |
||
41 | } |
||
42 | |||
43 | |||
44 | public function __toString(): string |
||
49 |