| Conditions | 4 |
| Paths | 8 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public static function typeIndication(string $name, int $modifiers = 0): string |
||
| 25 | { |
||
| 26 | $result = $name; |
||
| 27 | |||
| 28 | if (self::is($modifiers, ProvidesTypeIndication::IS_NOT_NULL)) { |
||
| 29 | $result .= '!'; |
||
| 30 | } |
||
| 31 | |||
| 32 | if (self::is($modifiers, ProvidesTypeIndication::IS_LIST)) { |
||
| 33 | $result = '[' . $result . ']'; |
||
| 34 | } |
||
| 35 | |||
| 36 | if (self::is($modifiers, ProvidesTypeIndication::IS_LIST_OF_NOT_NULL)) { |
||
| 37 | $result .= '!'; |
||
| 38 | } |
||
| 39 | |||
| 40 | return $result; |
||
| 41 | } |
||
| 42 | |||
| 54 |