1 | <?php |
||
15 | final class SuffixVisitor implements HostnameVisitorInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var SuffixProviderInterface |
||
19 | */ |
||
20 | private $suffixProvider; |
||
21 | |||
22 | /** |
||
23 | * @inheritDoc |
||
24 | */ |
||
25 | public function __construct(SuffixProviderInterface $suffixProvider = null) |
||
29 | |||
30 | /** |
||
31 | * @inheritDoc |
||
32 | */ |
||
33 | public function visit($hostname, ParsedHostname $parsedHostname): void |
||
46 | |||
47 | /** |
||
48 | * @param Violin $hostname |
||
49 | * @return null|string |
||
50 | */ |
||
51 | private function findSuffix(Violin $hostname): ?string |
||
60 | } |
||
61 |