| 1 | <?php |
||
| 14 | class TcpTunnel extends Tunnel |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $host; |
||
| 20 | |||
| 21 | public function __construct($serverPort, $host) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Gets the local host. |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getHost() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function toArray() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function getProtocol() |
||
| 56 | } |