1 | <?php |
||
31 | 1 | final class Broker |
|
32 | { |
||
33 | /** |
||
34 | * Implement nette smart magic |
||
35 | */ |
||
36 | 1 | use Nette\SmartObject; |
|
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | private $httpHost; |
||
42 | |||
43 | /** |
||
44 | * @var int |
||
45 | */ |
||
46 | private $port; |
||
47 | |||
48 | /** |
||
49 | * @var string |
||
50 | */ |
||
51 | private $address; |
||
52 | |||
53 | /** |
||
54 | * @var bool |
||
55 | */ |
||
56 | private $enableSSL = FALSE; |
||
57 | |||
58 | /** |
||
59 | * @var array |
||
60 | */ |
||
61 | private $sslSettings = []; |
||
62 | |||
63 | /** |
||
64 | * @var Connection |
||
65 | */ |
||
66 | private $connection; |
||
67 | |||
68 | /** |
||
69 | * @param string|NULL $httpHost |
||
70 | * @param int $port |
||
71 | * @param string|NULL $address |
||
72 | * @param bool $enableSSL |
||
73 | * @param array $sslSettings |
||
74 | * @param Connection $connection |
||
75 | */ |
||
76 | public function __construct( |
||
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | * |
||
95 | * @throws Exceptions\InvalidStateException |
||
96 | */ |
||
97 | public function getUri() : string |
||
108 | |||
109 | /** |
||
110 | * @return string|NULL |
||
111 | */ |
||
112 | public function getHttpHost() : ?string |
||
116 | |||
117 | /** |
||
118 | * @return int |
||
119 | */ |
||
120 | public function getPort() : int |
||
124 | |||
125 | /** |
||
126 | * @return string|NULL |
||
127 | */ |
||
128 | public function getAddress() : ?string |
||
132 | |||
133 | /** |
||
134 | * @return bool |
||
135 | */ |
||
136 | public function isSSLEnabled() : bool |
||
140 | |||
141 | /** |
||
142 | * @return array |
||
143 | */ |
||
144 | public function getSSLConfiguration() : array |
||
148 | |||
149 | /** |
||
150 | * @return Connection |
||
151 | */ |
||
152 | public function getConnection() : Connection |
||
156 | } |
||
157 |