Conditions | 5 |
Paths | 5 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
45 | public static function toString(int $value): string |
||
46 | 15 | { |
|
47 | 8 | switch ($value) { |
|
48 | 8 | case static::MATCH: |
|
49 | 15 | $result = 'MATCH'; |
|
50 | 8 | break; |
|
51 | 8 | case static::NOT_MATCH: |
|
52 | 15 | $result = 'NOT MATCH'; |
|
53 | 9 | break; |
|
54 | 9 | case static::NO_TARGET: |
|
55 | 7 | $result = 'NO TARGET'; |
|
56 | 7 | break; |
|
57 | 7 | case static::INDETERMINATE: |
|
58 | $result = 'INDETERMINATE'; |
||
59 | 1 | break; |
|
60 | 1 | default: |
|
61 | $result = 'UNKNOWN'; |
||
62 | break; |
||
63 | 15 | } |
|
64 | |||
65 | return $result; |
||
66 | } |
||
67 | } |
||
68 |