Passed
Push — support-php-8.2-8.3 ( ae3b12...8c2247 )
by Akihito
01:21
created

DefaultRouteGenerator::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\AuraSqlModule\Pagerfanta;
6
7
use Override;
8
9
final class DefaultRouteGenerator implements RouteGeneratorInterface
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