| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 94.74% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class IntegerRule extends NumericRule implements IntegerRuleInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param string $name |
||
| 16 | */ |
||
| 17 | 50 | public function __construct(string $name) |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritDoc} |
||
| 30 | * |
||
| 31 | * @return static |
||
| 32 | */ |
||
| 33 | 9 | public function even(): self |
|
| 39 | 9 | )); |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritDoc} |
||
| 44 | * |
||
| 45 | * @return static |
||
| 46 | */ |
||
| 47 | 12 | public function odd(): self |
|
| 56 |