Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | trait Chain |
||
6 | { |
||
7 | /** |
||
8 | * Returns a wrapper instance, allows the value to be passed through multiple php-lodash functions |
||
9 | * |
||
10 | * @usage __::chain([0, 1, 2, 3, null]) |
||
11 | * ->compact() |
||
12 | * ->prepend(4) |
||
13 | * ->value(); |
||
14 | * >> [4, 1, 2, 3] |
||
15 | * |
||
16 | * @param mixed $initialValue |
||
17 | * |
||
18 | * @return mixed |
||
19 | */ |
||
20 | 1 | public static function chain($initialValue) |
|
25 |