| 1 | <?php |
||
| 17 | final class ConnectionResponse implements ApiResponse |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | private $noVerify; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var bool |
||
| 26 | */ |
||
| 27 | private $requireTLS; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $data |
||
| 31 | * |
||
| 32 | * @return self |
||
| 33 | */ |
||
| 34 | public static function create(array $data) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param bool $noVerify Disable remote TLS certificate verification |
||
| 49 | * @param bool $requireTLS Requires TLS for all outbound communication |
||
| 50 | */ |
||
| 51 | private function __construct($noVerify, $requireTLS) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return bool |
||
| 59 | */ |
||
| 60 | public function getSkipVerification() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return bool |
||
| 67 | */ |
||
| 68 | public function getRequireTLS() |
||
| 72 | } |
||
| 73 |