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