| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | final class Mana |
||
| 6 | { |
||
| 7 | private $amount; |
||
| 8 | |||
| 9 | public function __construct(int $amount) |
||
| 10 | { |
||
| 11 | $this->amount = $amount; |
||
| 12 | } |
||
| 13 | |||
| 14 | public function isLessThan(Mana $that): bool |
||
| 15 | { |
||
| 16 | return $this->amount < $that->amount; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function minus(Mana $reduction): Mana |
||
| 22 | } |
||
| 23 | } |
||
| 24 |