GeneratedUrlAwareRouteContext   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 7
dl 0
loc 42
rs 10
c 0
b 0
f 0
ccs 10
cts 10
cp 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getReferenceType() 0 3 1
A getGeneratedUrl() 0 3 1
A setGeneratedUrl() 0 3 1
A setReferenceType() 0 3 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 GeneratedUrlAwareRouteContext extends RouteContext implements GeneratedUrlAwareInterface
17
{
18
    /**
19
     * @var int
20
     */
21
    private $referenceType;
22
23
    /**
24
     * @var string
25
     */
26
    private $generatedUrl;
27
28
    /**
29
     * {@inheritdoc}
30
     */
31 30
    public function setReferenceType($referenceType)
32
    {
33 30
        $this->referenceType = $referenceType;
34 30
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39 11
    public function getReferenceType()
40
    {
41 11
        return $this->referenceType;
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47 10
    public function setGeneratedUrl($generatedUrl)
48
    {
49 10
        $this->generatedUrl = $generatedUrl;
50 10
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55 21
    public function getGeneratedUrl()
56
    {
57 21
        return $this->generatedUrl;
58
    }
59
}
60