| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | trait Diff |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Computes the difference of arrays. |
||
| 17 | * |
||
| 18 | * Compares the array to another array or instance of `Cocur\Chain\Chain` and will set the array of elements that |
||
| 19 | * are not present in the other array. |
||
| 20 | * |
||
| 21 | * @param Chain|array $array2 an array or instance of `Cocur\Chain\Chain` to compare against |
||
| 22 | * |
||
| 23 | * @return self |
||
| 24 | */ |
||
| 25 | 2 | public function diff($array2): self |
|
| 35 |