Passed
Push — main ( ed0c6f...ecc967 )
by Jeroen
03:06 queued 01:31
created

LoadedRoute::getClassName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Jerowork\RouteAttributeProvider\RouteLoader;
6
7
use Jerowork\RouteAttributeProvider\Api\Route;
8
9
final class LoadedRoute
10
{
11 5
    public function __construct(
12
        private string $className,
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_PRIVATE, expecting T_VARIABLE on line 12 at column 8
Loading history...
13
        private string $methodName,
14
        private Route $route
15
    ) {
16 5
    }
17
18 5
    public function getClassName() : string
19
    {
20 5
        return $this->className;
21
    }
22
23 5
    public function getMethodName() : string
24
    {
25 5
        return $this->methodName;
26
    }
27
28 5
    public function getRoute() : Route
29
    {
30 5
        return $this->route;
31
    }
32
}
33