17 lines
443 B
PHP
17 lines
443 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pdp;
|
|
|
|
interface DomainNameResolver
|
|
{
|
|
/**
|
|
* Returns the effective TLD info for a given domain against an data source.
|
|
*
|
|
* If the effective TLD can not be resolved it returns a ResolvedDomainName with a null suffix
|
|
* If the host is not a valid domain it returns a ResolvedDomainName with a null Domain name
|
|
*/
|
|
public function resolve(Host $host): ResolvedDomainName;
|
|
}
|