1 | <?php |
||
15 | final class TryTlsUpgradeNegotiation implements NegotiationInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var ConnectionInterface |
||
19 | */ |
||
20 | private $connection; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $ehlo; |
||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | private $crypto; |
||
29 | |||
30 | /** |
||
31 | * ConnectionNegotiation constructor. |
||
32 | * @param ConnectionInterface $connection |
||
33 | * @param string $ehlo |
||
34 | * @param int $crypto |
||
35 | */ |
||
36 | 3 | public function __construct( |
|
45 | |||
46 | |||
47 | /** |
||
48 | * @param Client $client |
||
49 | * @throws ConnectionInsecureException |
||
50 | */ |
||
51 | 2 | public function negotiate(Client $client): void |
|
71 | } |
||
72 |