| Conditions | 5 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | return new class() implements ListInterface { |
||
| 12 | private $array = []; |
||
| 13 | use ArrayListTrait; |
||
| 14 | }; |
||
| 15 | } |
||
| 16 | |||
| 17 | 54 | final public static function listOf(...$elements): ListInterface |
|
| 18 | { |
||
| 19 | 54 | return listFromArray($elements); |
|
| 20 | } |
||
| 21 | |||
| 22 | 55 | final public static function listFromArray($elements): ListInterface |
|
| 23 | { |
||
| 24 | 55 | $list = emptyList(); |
|
| 44 |