1 | <?php |
||
14 | class AllowClient implements ClientInterface, RobotsTxtInterface |
||
15 | { |
||
16 | use DirectiveClientCommons; |
||
17 | |||
18 | /** |
||
19 | * Paths |
||
20 | * @var array |
||
21 | */ |
||
22 | private $paths; |
||
23 | |||
24 | /** |
||
25 | * Host |
||
26 | * @var InlineHostClient |
||
27 | */ |
||
28 | private $host; |
||
29 | |||
30 | /** |
||
31 | * Clean-param |
||
32 | * @var InlineCleanParamClient |
||
33 | */ |
||
34 | private $cleanParam; |
||
35 | |||
36 | /** |
||
37 | * AllowClient constructor. |
||
38 | * |
||
39 | * @param array $paths |
||
40 | * @param InlineHostClient $host |
||
41 | * @param InlineCleanParamClient $cleanParam |
||
42 | */ |
||
43 | public function __construct(array $paths, InlineHostClient $host, InlineCleanParamClient $cleanParam) |
||
49 | |||
50 | /** |
||
51 | * Inline Clean-param directive |
||
52 | * |
||
53 | * @return InlineCleanParamClient |
||
54 | */ |
||
55 | public function cleanParam() |
||
59 | |||
60 | /** |
||
61 | * Inline Host directive |
||
62 | * |
||
63 | * @return InlineHostClient |
||
64 | */ |
||
65 | public function host() |
||
69 | |||
70 | /** |
||
71 | * Check |
||
72 | * |
||
73 | * @param string $uri |
||
74 | * @return bool |
||
75 | */ |
||
76 | public function isListed($uri) |
||
85 | |||
86 | /** |
||
87 | * Get path and query |
||
88 | * |
||
89 | * @param string $uri |
||
90 | * @return string |
||
91 | * @throws ClientException |
||
92 | */ |
||
93 | private function getPath($uri) |
||
109 | |||
110 | /** |
||
111 | * Export |
||
112 | * |
||
113 | * @return array |
||
114 | */ |
||
115 | public function export() |
||
123 | } |
||
124 |