| 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 | 12 | public function __construct(string $host, ?int $port, int $timeout) | |
| 27 | |||
| 28 | 12 | public function getHost(): string | |
| 32 | |||
| 33 | 12 | public function getPort(): ?int | |
| 37 | |||
| 38 | 12 | public function getTimeout(): int | |
| 42 | } | ||
| 43 |