RouteInfo::getCallable()   A
last analyzed

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
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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