| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class ShortUrlRepositoryAdapter implements AdapterInterface |
||
| 12 | { |
||
| 13 | private ShortUrlRepositoryInterface $repository; |
||
| 14 | private ShortUrlsParams $params; |
||
| 15 | |||
| 16 | 24 | public function __construct(ShortUrlRepositoryInterface $repository, ShortUrlsParams $params) |
|
| 20 | 24 | } |
|
| 21 | |||
| 22 | public function getItems($offset, $itemCountPerPage): array // phpcs:ignore |
||
| 23 | { |
||
| 24 | return $this->repository->findList( |
||
| 25 | $itemCountPerPage, |
||
| 26 | $offset, |
||
| 27 | $this->params->searchTerm(), |
||
| 28 | 13 | $this->params->tags(), |
|
| 29 | $this->params->orderBy(), |
||
| 30 | 13 | $this->params->dateRange(), |
|
| 31 | ); |
||
| 32 | } |
||
| 33 | 13 | ||
| 34 | 13 | public function count(): int |
|
| 40 | ); |
||
| 41 | } |
||
| 43 |