GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

SlimRouteConfiguration::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace JDolba\SlimHttpSmokeTesting\RouteConfiguration;
5
6
use Slim\Interfaces\RouteInterface;
7
use Slim\Route;
8
9
class SlimRouteConfiguration implements RouteConfigurationInterface
10
{
11
12
    /**
13
     * @var \Slim\Route
14
     */
15
    private $route;
16
17
    public function __construct(Route $route)
18
    {
19
        $this->route = $route;
20
    }
21
22
    public function getRoute(): RouteInterface
23
    {
24
        return $this->route;
25
    }
26
27
    public function getRouteName(): string
28
    {
29
        return  $this->route->getPattern();
30
    }
31
32
    public function getMethods(): array
33
    {
34
        return $this->route->getMethods();
35
    }
36
}
37