| 1 | <?php |
||
| 14 | abstract class Tunnel implements TunnelInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The tunnel server port. |
||
| 18 | * |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | protected $serverPort; |
||
| 22 | |||
| 23 | public function __construct($serverPort) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | public function getServerPort() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function match($info) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | public function jsonSerialize() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function __toString() |
||
| 59 | } |