Conditions | 3 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function differenceBetween(Collection ...$others) |
||
29 | { |
||
30 | return $this->newCopy(array_filter( |
||
|
|||
31 | $this->items(), |
||
32 | function ($item) use ($others) : bool { |
||
33 | foreach ($others as $otherCollection) { |
||
34 | if (in_array($item, $otherCollection->items(), false)) { |
||
35 | return false; |
||
36 | } |
||
37 | } |
||
38 | return true; |
||
39 | } |
||
52 | } |