RouteInfo   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 28
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getCallable() 0 4 1
A getParams() 0 4 1
A __construct() 0 6 1
1
<?php
2
namespace Penny\Route;
3
4
class RouteInfo implements RouteInfoInterface
5
{
6
    private $name;
7
    private $callable;
8
    private $params;
9
10 13
    public function __construct($name, callable $callable, $params = [])
11
    {
12 13
        $this->name = $name;
13 13
        $this->callable = $callable;
14 13
        $this->params = $params;
15 13
    }
16
17 12
    public function getName()
18
    {
19 12
        return $this->name;
20
    }
21
22 10
    public function getCallable()
23
    {
24 10
        return $this->callable;
25
    }
26
27 10
    public function getParams()
28
    {
29 10
        return $this->params;
30
    }
31
}
32