| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class SignedIntResult implements Result |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | private $compareResult; |
||
| 13 | |||
| 14 | 4 | public function __construct(int $compareResult) |
|
| 15 | { |
||
| 16 | 4 | $this->compareResult = $compareResult; |
|
| 17 | 4 | } |
|
| 18 | |||
| 19 | 4 | public function isSame(): bool |
|
| 20 | { |
||
| 21 | 4 | return $this->compareResult === 0; |
|
| 22 | } |
||
| 23 | |||
| 24 | 3 | public function isGreater(): bool |
|
| 27 | } |
||
| 28 | |||
| 29 | 3 | public function isLess(): bool |
|
| 32 | } |
||
| 33 | } |