| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class RepositoryPaginatorFactory extends PaginatorFactory |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var RepositoryInterface |
||
| 18 | */ |
||
| 19 | private $repository; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * RepositoryPaginatorFactory constructor. |
||
| 23 | * |
||
| 24 | * @param RepositoryInterface $repository |
||
| 25 | */ |
||
| 26 | 115 | public function __construct(RepositoryInterface $repository) |
|
| 31 | 115 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Create the walker instance for the given query |
||
| 35 | * |
||
| 36 | * @param ReadCommandInterface $query |
||
| 37 | * @param int|null $limit |
||
|
|
|||
| 38 | * @param int|null $page |
||
| 39 | * |
||
| 40 | * @return Walker |
||
| 41 | */ |
||
| 42 | 9 | protected function createWalker(ReadCommandInterface $query, ?int $limit, ?int $page): Walker |
|
| 56 |