| 1 | <?php |
||
| 13 | final class SecureConnection extends AbstractConnection |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $protocol; |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $host; |
||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | private $port; |
||
| 27 | /** |
||
| 28 | * @var SecureConnectionOptions |
||
| 29 | */ |
||
| 30 | private $options; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * PlainTcpConnection constructor. |
||
| 34 | * @param string $protocol |
||
| 35 | * @param string $host |
||
| 36 | * @param int $port |
||
| 37 | * @param SecureConnectionOptions $options |
||
| 38 | */ |
||
| 39 | public function __construct(string $protocol, string $host, int $port, SecureConnectionOptions $options) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param int $type |
||
| 49 | */ |
||
| 50 | public function upgrade(int $type): void |
||
| 54 | |||
| 55 | /** |
||
| 56 | * |
||
| 57 | */ |
||
| 58 | public function connect(): void |
||
| 77 | } |