1 | <?php declare(strict_types=1); |
||
5 | trait RouteConditionHandlerTrait |
||
6 | { |
||
7 | /** |
||
8 | * @var string|null |
||
9 | */ |
||
10 | protected $host; |
||
11 | |||
12 | /** |
||
13 | * @var string|null |
||
14 | */ |
||
15 | protected $name; |
||
16 | |||
17 | /** |
||
18 | * @var string|null |
||
19 | */ |
||
20 | protected $scheme; |
||
21 | |||
22 | /** |
||
23 | * @var int|null |
||
24 | */ |
||
25 | protected $port; |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 30 | public function getHost() : ?string |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 6 | public function setHost(string $host) : RouteConditionHandlerInterface |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 30 | public function getName() : ?string |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 4 | public function setName(string $name) : RouteConditionHandlerInterface |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 32 | public function getScheme() : ?string |
|
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | 6 | public function setScheme(string $scheme) : RouteConditionHandlerInterface |
|
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | 28 | public function getPort() : ?int |
|
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | 6 | public function setPort(int $port) : RouteConditionHandlerInterface |
|
98 | } |
||
99 |