| 1 | <?php declare(strict_types=1); |
||
| 5 | trait RouteConditionHandlerTrait |
||
| 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 | 27 | public function getHost() : ?string |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Set the host. |
||
| 39 | * |
||
| 40 | * @param string $host |
||
| 41 | * |
||
| 42 | * @return \League\Route\RouteConditionHandlerInterface |
||
| 43 | */ |
||
| 44 | 6 | public function setHost($host) : RouteConditionHandlerInterface |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Get the name. |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 24 | public function getName() : ?string |
|
| 60 | |||
| 61 | /** |
||
| 62 | * Set the name. |
||
| 63 | * |
||
| 64 | * @param string $name |
||
| 65 | * |
||
| 66 | * @return \League\Route\RouteConditionHandlerInterface |
||
| 67 | */ |
||
| 68 | 6 | public function setName($name) : RouteConditionHandlerInterface |
|
| 74 | |||
| 75 | /** |
||
| 76 | * Get the scheme. |
||
| 77 | * |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | 27 | public function getScheme() : ?string |
|
| 84 | |||
| 85 | /** |
||
| 86 | * Set the scheme. |
||
| 87 | * |
||
| 88 | * @param string $scheme |
||
| 89 | * |
||
| 90 | * @return \League\Route\RouteConditionHandlerInterface |
||
| 91 | */ |
||
| 92 | 6 | public function setScheme($scheme) : RouteConditionHandlerInterface |
|
| 98 | |||
| 99 | /** |
||
| 100 | * Get the port. |
||
| 101 | * |
||
| 102 | * @return int |
||
| 103 | */ |
||
| 104 | 27 | public function getPort() : ?int |
|
| 108 | |||
| 109 | /** |
||
| 110 | * Set the port. |
||
| 111 | * |
||
| 112 | * @param int $port |
||
| 113 | * |
||
| 114 | * @return \League\Route\RouteConditionHandlerInterface |
||
| 115 | */ |
||
| 116 | 6 | public function setPort($port) : RouteConditionHandlerInterface |
|
| 122 | } |
||
| 123 |