1
0
mirror of https://github.com/danog/dns.git synced 2024-11-30 04:29:06 +01:00
dns/lib/Resolver.php

17 lines
344 B
PHP
Raw Normal View History

2016-08-24 06:20:25 +02:00
<?php declare(strict_types = 1);
namespace Amp\Dns;
2016-11-15 17:42:15 +01:00
use Interop\Async\Promise;
interface Resolver {
/**
* @see \Amp\Dns\resolve
*/
2016-11-15 17:42:15 +01:00
public function resolve(string $name, array $options = []): Promise;
/**
* @see \Amp\Dns\query
*/
2016-11-15 17:42:15 +01:00
public function query(string $name, $type, array $options = []): Promise;
}