1 | <?php |
||
15 | class DnsConnector implements ConnectorInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var ConnectorInterface |
||
19 | */ |
||
20 | private $connector; |
||
21 | |||
22 | /** |
||
23 | * @var ResolverInterface |
||
24 | */ |
||
25 | private $resolver; |
||
26 | |||
27 | 5 | public function __construct(ConnectorInterface $connector, ResolverInterface $resolver) |
|
32 | |||
33 | 5 | public function create(string $host, int $port) : PromiseInterface |
|
41 | |||
42 | 5 | private function resolveHostname(string $host) |
|
50 | } |
||
51 |