| 1 | <?php |
||
| 7 | final class Resolver implements ResolverInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param RepositoryInterface $repository |
||
| 11 | * @param string $id |
||
| 12 | * |
||
| 13 | * @return \Closure |
||
| 14 | */ |
||
| 15 | public function find(RepositoryInterface $repository, string $id): \Closure |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param RepositoryInterface $repository |
||
| 24 | * @param array $criteria |
||
| 25 | * |
||
| 26 | * @return \Closure |
||
| 27 | */ |
||
| 28 | public function findOneBy(RepositoryInterface $repository, array $criteria): \Closure |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param RepositoryInterface $repository |
||
| 37 | * @param array $criteria |
||
| 38 | * @param array|null $orderBy |
||
| 39 | * @param int|null $limit |
||
| 40 | * @param int|null $offset |
||
| 41 | * |
||
| 42 | * @return ModelCollection |
||
| 43 | */ |
||
| 44 | public function findBy( |
||
| 55 | } |
||
| 56 |