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