| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | |||
| 11 | final readonly class AuraSqlQueryPagerFactory implements AuraSqlQueryPagerFactoryInterface |
||
|
|
|||
| 12 | { |
||
| 13 | public function __construct(private AuraSqlQueryPagerInterface $auraSqlQueryPager) |
||
| 14 | { |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritDoc} |
||
| 19 | 3 | */ |
|
| 20 | #[Override] |
||
| 21 | 3 | public function newInstance(ExtendedPdoInterface $pdo, SelectInterface $select, $paging, $uriTemplate) |
|
| 22 | 3 | { |
|
| 23 | $this->auraSqlQueryPager->init($pdo, $select, $paging, new DefaultRouteGenerator($uriTemplate)); |
||
| 24 | |||
| 25 | return $this->auraSqlQueryPager; |
||
| 26 | } |
||
| 27 | } |
||
| 28 |