RouteConditionTrait   A
last analyzed

Coupling/Cohesion

Components 0
Dependencies 0

Complexity

Total Complexity 6

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 89
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getHost() 0 4 1
A setHost() 0 6 1
A getName() 0 4 1
A setName() 0 6 1
A getScheme() 0 4 1
A setScheme() 0 6 1
1
<?php
2
3
namespace League\Route;
4
5
trait RouteConditionTrait
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $host;
11
12
    /**
13
     * @var string
14
     */
15
    protected $name;
16
17
    /**
18
     * @var string
19
     */
20
    protected $scheme;
21
22
    /**
23
     * Get the host.
24
     *
25
     * @return string
26
     */
27 33
    public function getHost()
28
    {
29 33
        return $this->host;
30
    }
31
32
    /**
33
     * Set the host.
34
     *
35
     * @param string $host
36
     *
37
     * @return \League\Route\Route
38
     */
39 9
    public function setHost($host)
40
    {
41 9
        $this->host = $host;
42
43 9
        return $this;
44
    }
45
46
    /**
47
     * Get the name.
48
     *
49
     * @return string
50
     */
51 30
    public function getName()
52
    {
53 30
        return $this->name;
54
    }
55
56
    /**
57
     * Set the name.
58
     *
59
     * @param string $name
60
     *
61
     * @return \League\Route\Route
62
     */
63 9
    public function setName($name)
64
    {
65 9
        $this->name = $name;
66
67 9
        return $this;
68
    }
69
70
    /**
71
     * Get the scheme.
72
     *
73
     * @return string
74
     */
75 33
    public function getScheme()
76
    {
77 33
        return $this->scheme;
78
    }
79
80
    /**
81
     * Set the scheme.
82
     *
83
     * @param string $scheme
84
     *
85
     * @return \League\Route\Route
86
     */
87 9
    public function setScheme($scheme)
88
    {
89 9
        $this->scheme = $scheme;
90
91 9
        return $this;
92
    }
93
}
94