mirror of
https://github.com/danog/dns.git
synced 2024-11-30 04:29:06 +01:00
644c4f8fc6
Dropping strict types so it is not enforced in callbacks provided by application code.
17 lines
317 B
PHP
17 lines
317 B
PHP
<?php
|
|
|
|
namespace Amp\Dns;
|
|
|
|
use Interop\Async\Promise;
|
|
|
|
interface Resolver {
|
|
/**
|
|
* @see \Amp\Dns\resolve
|
|
*/
|
|
public function resolve(string $name, array $options = []): Promise;
|
|
|
|
/**
|
|
* @see \Amp\Dns\query
|
|
*/
|
|
public function query(string $name, $type, array $options = []): Promise;
|
|
} |