Completed
Push — master ( 216b02...3062b3 )
by Phil
116:53 queued 108:43
created

RouteConditionTrait::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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
     * @var int
24
     */
25
    protected $port;
26
27
    /**
28
     * Get the host.
29
     *
30
     * @return string
31
     */
32 33
    public function getHost()
33
    {
34 33
        return $this->host;
35
    }
36
37
    /**
38
     * Set the host.
39
     *
40
     * @param string $host
41
     *
42
     * @return \League\Route\Route
43
     */
44 9
    public function setHost($host)
45
    {
46 9
        $this->host = $host;
47
48 9
        return $this;
49
    }
50
51
    /**
52
     * Get the name.
53
     *
54
     * @return string
55
     */
56 30
    public function getName()
57
    {
58 30
        return $this->name;
59
    }
60
61
    /**
62
     * Set the name.
63
     *
64
     * @param string $name
65
     *
66
     * @return \League\Route\Route
67
     */
68 9
    public function setName($name)
69
    {
70 9
        $this->name = $name;
71
72 9
        return $this;
73
    }
74
75
    /**
76
     * Get the scheme.
77
     *
78
     * @return string
79
     */
80 33
    public function getScheme()
81
    {
82 33
        return $this->scheme;
83
    }
84
85
    /**
86
     * Set the scheme.
87
     *
88
     * @param string $scheme
89
     *
90
     * @return \League\Route\Route
91
     */
92 9
    public function setScheme($scheme)
93
    {
94 9
        $this->scheme = $scheme;
95
96 9
        return $this;
97
    }
98
99
    /**
100
     * Get the port.
101
     *
102
     * @return int
103
     */
104 33
    public function getPort()
105
    {
106 33
        return $this->port;
107
    }
108
109
    /**
110
     * Set the port.
111
     *
112
     * @param int $port
113
     *
114
     * @return \League\Route\Route
115
     */
116 9
    public function setPort($port)
117
    {
118 9
        $this->port = $port;
119
120 9
        return $this;
121
    }
122
}
123