| 1 | <?php |
||
| 14 | final class HostnameExtractor |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var HostnameVisitorInterface[] |
||
| 18 | */ |
||
| 19 | private $visitors; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * HostnameExtractor constructor. |
||
| 23 | * |
||
| 24 | * @param SuffixProviderInterface|null $suffixProvider |
||
| 25 | */ |
||
| 26 | public function __construct(SuffixProviderInterface $suffixProvider = null) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $hostname |
||
| 39 | * @return ParsedHostname |
||
| 40 | * @throws \InvalidArgumentException |
||
| 41 | */ |
||
| 42 | public function extract(string $hostname): ParsedHostname |
||
| 51 | } |
||
| 52 |