| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Ray\AuraSqlModule\Pagerfanta; |
||
| 6 | |||
| 7 | use Override; |
||
| 8 | |||
| 9 | final readonly class DefaultRouteGenerator implements RouteGeneratorInterface |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 10 | { |
||
| 11 | public function __construct(private string $uri) |
||
| 12 | { |
||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * {@inheritDoc} |
||
| 17 | */ |
||
| 18 | #[Override] |
||
| 19 | public function __invoke($page) |
||
| 20 | { |
||
| 21 | return uri_template($this->uri, ['page' => $page]); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |