1
0
mirror of https://github.com/danog/dns.git synced 2024-11-26 20:14:51 +01:00
dns/lib/Resolver.php

17 lines
316 B
PHP
Raw Normal View History

<?php
namespace Amp\Dns;
use AsyncInterop\Promise;
2016-11-15 17:42:15 +01:00
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;
}