| 1 | <?php |
||
| 9 | class StreamContext |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var bool |
||
| 14 | */ |
||
| 15 | private $verifyPeerName; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $sniServerName; |
||
| 21 | |||
| 22 | |||
| 23 | /** |
||
| 24 | * StreamContext constructor. |
||
| 25 | * |
||
| 26 | * @param bool $verifyPeerName (optional) |
||
| 27 | * @param string|null $sniServerName (optional) |
||
| 28 | */ |
||
| 29 | public function __construct($verifyPeerName = true, $sniServerName = null) |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * @return boolean |
||
| 38 | */ |
||
| 39 | public function verifyPeerName() |
||
| 43 | |||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getSniServerName() |
||
| 52 | |||
| 53 | |||
| 54 | /** |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function getArray() |
||
| 74 | |||
| 75 | |||
| 76 | /** |
||
| 77 | * @return resource |
||
| 78 | */ |
||
| 79 | public function getResource() |
||
| 83 | } |
||
| 84 |