| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | trait ClosureSearching |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @see ClosureSearchable::findOneWith() |
||
| 15 | * @throws NotFound |
||
| 16 | * @param Closure $function |
||
| 17 | * @return mixed|object |
||
| 18 | */ |
||
| 19 | public function findOneWith(Closure $function) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @see ClosureSearchable::findOneWith() |
||
| 32 | * @param Closure $function |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | public function checkWith(Closure $function): bool |
||
| 43 | } |
||
| 44 | |||
| 45 | /** @see Collection::items() */ |
||
| 46 | abstract public function items(): array; |
||
| 47 | } |
||
| 48 |