1 | <?php |
||
13 | class AllowClient implements ClientInterface, RobotsTxtInterface |
||
14 | { |
||
15 | use DirectiveClientCommons; |
||
16 | use UriParser; |
||
17 | |||
18 | /** |
||
19 | * Paths |
||
20 | * @var array |
||
21 | */ |
||
22 | private $paths; |
||
23 | |||
24 | /** |
||
25 | * Host |
||
26 | * @var HostClient |
||
27 | */ |
||
28 | private $host; |
||
29 | |||
30 | /** |
||
31 | * Clean-param |
||
32 | * @var CleanParamClient |
||
33 | */ |
||
34 | private $cleanParam; |
||
35 | |||
36 | /** |
||
37 | * AllowClient constructor. |
||
38 | * |
||
39 | * @param array $paths |
||
40 | * @param HostClient $host |
||
41 | * @param CleanParamClient $cleanParam |
||
42 | */ |
||
43 | public function __construct(array $paths, HostClient $host, CleanParamClient $cleanParam) |
||
49 | |||
50 | /** |
||
51 | * Check |
||
52 | * |
||
53 | * @param string $url |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function isListed($url) |
||
65 | |||
66 | /** |
||
67 | * Get path and query |
||
68 | * |
||
69 | * @param string $url |
||
70 | * @return string |
||
71 | * @throws ClientException |
||
72 | */ |
||
73 | private function getPath($url) |
||
88 | |||
89 | /** |
||
90 | * Export |
||
91 | * |
||
92 | * @return array |
||
93 | */ |
||
94 | public function export() |
||
102 | } |
||
103 |