1 | <?php |
||
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() |
||
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) |
||
50 | |||
51 | 30 | /** |
|
52 | * Get the name. |
||
53 | 30 | * |
|
54 | * @return string |
||
55 | */ |
||
56 | public function getName() |
||
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) |
||
74 | |||
75 | 33 | /** |
|
76 | * Get the scheme. |
||
77 | 33 | * |
|
78 | * @return string |
||
79 | */ |
||
80 | public function getScheme() |
||
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) |
||
98 | |||
99 | /** |
||
100 | * Get the port. |
||
101 | * |
||
102 | * @return int |
||
103 | */ |
||
104 | public function getPort() |
||
108 | |||
109 | /** |
||
110 | * Set the port. |
||
111 | * |
||
112 | * @param int $port |
||
113 | * |
||
114 | * @return \League\Route\Route |
||
115 | */ |
||
116 | public function setPort($port) |
||
122 | } |
||
123 |