| 1 | <?php |
||
| 4 | class Server |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * @var string |
||
| 8 | */ |
||
| 9 | private $host = ''; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | private $port; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $host |
||
| 18 | * @param int $port |
||
| 19 | */ |
||
| 20 | 9 | public function __construct($host = '127.0.0.1', $port = 4730) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | 6 | public function getHost() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return int |
||
| 36 | */ |
||
| 37 | 6 | public function getPort() |
|
| 41 | } |
||
| 42 |