Test Failed
Push — master ( 3eb0e4...9196b6 )
by Ivan
02:13
created

RouteUri   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 29
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRoute() 0 4 1
A getParameters() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Everlution\Navigation\Uri;
6
7
use Everlution\Navigation\Property\BaseProperty;
8
9
/**
10
 * Class RouteUri.
11
 * @author Ivan Barlog <[email protected]>
12
 */
13
class RouteUri extends BaseProperty implements Uri
14
{
15
    /** @var string */
16
    private $route;
17
    /** @var array */
18
    private $parameters;
19
20
    public function __construct(string $route, array $parameters = [])
21
    {
22
        $this->route = $route;
23
        $this->parameters = $parameters;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getRoute(): string
30
    {
31
        return $this->route;
32
    }
33
34
    /**
35
     * @return array
36
     */
37
    public function getParameters(): array
38
    {
39
        return $this->parameters;
40
    }
41
}
42