Total Complexity | 1 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | trait Altering |
||
20 | { |
||
21 | /** |
||
22 | * @see Alterable::change() |
||
23 | * @param int $index |
||
24 | * @param mixed $newItem |
||
25 | * @return static |
||
26 | */ |
||
27 | public function change(int $index, $newItem) |
||
32 | } |
||
33 | |||
34 | /** @see Collection::items() */ |
||
35 | abstract public function items(): array; |
||
36 | |||
37 | /** |
||
38 | * @see ImmutableCollection::newCopy() |
||
39 | * @param array $items |
||
40 | * @return static |
||
41 | */ |
||
42 | abstract protected function newCopy(array $items): Collection; |
||
43 | } |
||
44 |