Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 5 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
7 | final class Functions |
||
8 | { |
||
9 | final public static function emptyList(): ListInterface |
||
10 | { |
||
11 | return new class() implements ListInterface { |
||
12 | private $array = []; |
||
13 | use ArrayListTrait; |
||
14 | }; |
||
15 | } |
||
16 | |||
17 | 61 | final public static function listOf(...$elements): ListInterface |
|
20 | } |
||
21 | |||
22 | 63 | final public static function listFromArray($elements): ListInterface |
|
27 | } |
||
28 | |||
29 | 2 | public static function isList($value): bool |
|
30 | { |
||
32 | } |
||
33 | } |
||
54 |