Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 4 | ||
Bugs | 0 | Features | 1 |
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 | 57 | final public static function listOf(...$elements): ListInterface |
|
20 | } |
||
21 | |||
22 | 58 | final public static function listFromArray($elements): ListInterface |
|
27 | } |
||
28 | } |
||
29 | |||
30 | function emptyList(): ListInterface |
||
44 |