Completed
Push — master ( c9b5f2...fe28ea )
by Phil
43:47 queued 18:49
created

RouteConditionTrait::getPort()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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