Completed
Push — 1.x ( 249f8e...9ce618 )
by Akihito
11s
created

DefaultRouteGenerator::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

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
ccs 2
cts 2
cp 1
crap 1
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 6
    }
14
15 6
    /**
16 6
     * {@inheritDoc}
17
     */
18 4
    #[Override]
19
    public function __invoke($page)
20 4
    {
21
        return uri_template($this->uri, ['page' => $page]);
22
    }
23
}
24