| 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 static |
||
| 28 | */ |
||
| 29 | public function that(Satisfiable $condition) |
||
| 33 | )); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @see Filterable::filterWith |
||
| 38 | * @param Closure $function |
||
| 39 | * @return static |
||
| 40 | */ |
||
| 41 | public function filterWith(Closure $function) |
||
| 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 static |
||
| 55 | */ |
||
| 56 | abstract protected function newCopy(array $items): Collection; |
||
| 57 | } |
||
| 58 |