Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | trait Filtering |
||
23 | { |
||
24 | /** |
||
25 | * @see Filterable::that |
||
26 | * @param Satisfiable $condition |
||
27 | * @return Filterable|static |
||
28 | */ |
||
29 | public function that(Satisfiable $condition): Filterable |
||
33 | )); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @see Filterable::filterWith |
||
38 | * @param Closure $function |
||
39 | * @return Filterable|static |
||
40 | */ |
||
41 | public function filterWith(Closure $function): Filterable |
||
45 | )); |
||
46 | } |
||
47 | |||
48 | /** @see Collection::items() */ |
||
49 | abstract public function items(): array; |
||
50 | |||
51 | /** |
||
52 | * @see ImmutableCollection::newCopy() |
||
53 | * @param array $items |
||
54 | * @return Collection|static |
||
55 | */ |
||
56 | abstract protected function newCopy(array $items): Collection; |
||
57 | } |
||
58 |