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.
Completed
Branch 1.0 (53c4b5)
by Quim
03:22
created

ParsedRoute   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 21
wmc 3
lcom 0
cbo 0
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A controller() 0 4 1
A params() 0 4 1
1
<?php
2
namespace QuimCalpe\Router\Route;
3
4
class ParsedRoute
5
{
6
    private $controller;
7
    private $params;
8
9 29
    public function __construct($controller, array $params = [])
10
    {
11 29
        $this->controller = $controller;
12 29
        $this->params = $params;
13 29
    }
14
15 28
    public function controller()
16
    {
17 28
        return $this->controller;
18
    }
19
20 15
    public function params()
21
    {
22 15
        return $this->params;
23
    }
24
}
25