RouteMetadata   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 36
rs 10
c 0
b 0
f 0
ccs 8
cts 8
cp 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getVariables() 0 3 1
A getDefaults() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
/*
4
 *
5
 * (c) Yaroslav Honcharuk <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Yarhon\RouteGuardBundle\Routing;
12
13
/**
14
 * @author Yaroslav Honcharuk <[email protected]>
15
 */
16
class RouteMetadata
17
{
18
    /**
19
     * @var array
20
     */
21
    private $defaults;
22
23
    /**
24
     * @var array
25
     */
26
    private $variables;
27
28
    /**
29
     * @param array $defaults
30
     * @param array $variables
31
     */
32 43
    public function __construct(array $defaults, array $variables)
33
    {
34 43
        $this->defaults = $defaults;
35 43
        $this->variables = $variables;
36 43
    }
37
38
    /**
39
     * @return array
40
     */
41 24
    public function getDefaults()
42
    {
43 24
        return $this->defaults;
44
    }
45
46
    /**
47
     * @return array
48
     */
49 24
    public function getVariables()
50
    {
51 24
        return $this->variables;
52
    }
53
}
54