Total Complexity | 1 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | trait Merging |
||
21 | { |
||
22 | /** |
||
23 | * @see Mergeable::merge() |
||
24 | * @param Collection $other |
||
25 | * @return static |
||
26 | */ |
||
27 | public function merge(Collection $other) |
||
30 | } |
||
31 | |||
32 | /** @see Collection::items() */ |
||
33 | abstract public function items(): array; |
||
34 | |||
35 | /** |
||
36 | * @see ImmutableCollection::newCopy() |
||
37 | * @param array $items |
||
38 | * @return Collection|static |
||
39 | */ |
||
40 | abstract protected function newCopy(array $items): Collection; |
||
41 | } |
||
42 |