| 1 | <?php |
||
| 10 | class Server |
||
| 11 | {
|
||
| 12 | /** @var string */ |
||
| 13 | protected $host; |
||
| 14 | |||
| 15 | /** @var int|null */ |
||
| 16 | protected $port; |
||
| 17 | |||
| 18 | /** @var int */ |
||
| 19 | protected $timeout; |
||
| 20 | |||
| 21 | public function __construct(string $host, ?int $port, int $timeout) |
||
| 27 | |||
| 28 | public function getHost(): string |
||
| 32 | |||
| 33 | public function getPort(): ?int |
||
| 37 | |||
| 38 | public function getTimeout(): int |
||
| 42 | } |
||
| 43 |