| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 53.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class Corruption extends IntegerValue |
||
| 11 | { |
||
| 12 | 2 | public static function low(): self |
|
| 13 | { |
||
| 14 | 2 | return new self(1); |
|
| 15 | } |
||
| 16 | |||
| 17 | 2 | public static function medium(): self |
|
| 18 | { |
||
| 19 | 2 | return new self(2); |
|
| 20 | } |
||
| 21 | |||
| 22 | 4 | public static function high(): self |
|
| 25 | } |
||
| 26 | |||
| 27 | public function __toString(): string |
||
| 34 | }; |
||
| 35 | } |
||
| 36 | |||
| 37 | 8 | protected function validate(): void |
|
| 44 |