Version 5.0.0 beta 1
This commit is contained in:
1 parent
25ddeb65d6
commit
15c7beabc5
6736 files changed
+627902
-497943
No files matched your search
+47
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pdp;
|
||||
|
||||
use Countable;
|
||||
use DateTimeImmutable;
|
||||
use Iterator;
|
||||
use IteratorAggregate;
|
||||
|
||||
/**
|
||||
* @extends IteratorAggregate<string>
|
||||
*/
|
||||
interface TopLevelDomainList extends Countable, DomainNameResolver, IteratorAggregate
|
||||
{
|
||||
/**
|
||||
* Returns the Version ID.
|
||||
*/
|
||||
public function version(): string;
|
||||
|
||||
/**
|
||||
* Returns the List Last Modified Date.
|
||||
*/
|
||||
public function lastUpdated(): DateTimeImmutable;
|
||||
|
||||
|
||||
public function count(): int;
|
||||
|
||||
/**
|
||||
* Tells whether the list is empty.
|
||||
*/
|
||||
public function isEmpty(): bool;
|
||||
|
||||
/**
|
||||
* @return Iterator<string>
|
||||
*/
|
||||
public function getIterator(): Iterator;
|
||||
|
||||
/**
|
||||
* Returns PSL info for a given domain against the PSL rules for ICANN domain detection.
|
||||
*
|
||||
* @throws SyntaxError if the domain is invalid
|
||||
* @throws UnableToResolveDomain if the domain does not contain a IANA Effective TLD
|
||||
*/
|
||||
public function getIANADomain(Host $host): ResolvedDomainName;
|
||||
}
|
||||
Reference in new issue
Block a user