1 | <?php |
||
11 | class UserAgentClient extends Checks |
||
12 | { |
||
13 | /** |
||
14 | * Rules |
||
15 | * @var SubDirectiveHandler |
||
16 | */ |
||
17 | private $handler; |
||
|
|||
18 | |||
19 | /** |
||
20 | * UserAgentClient constructor. |
||
21 | * |
||
22 | * @param SubDirectiveHandler $handler |
||
23 | * @param string $baseUri |
||
24 | * @param int|null $statusCode |
||
25 | */ |
||
26 | public function __construct(SubDirectiveHandler $handler, $baseUri, $statusCode) |
||
31 | |||
32 | /** |
||
33 | * UserAgentClient destructor. |
||
34 | */ |
||
35 | public function __destruct() |
||
39 | |||
40 | /** |
||
41 | * Comment |
||
42 | * |
||
43 | * @return CommentClient |
||
44 | */ |
||
45 | public function comment() |
||
49 | |||
50 | /** |
||
51 | * Allow |
||
52 | * |
||
53 | * @return DisAllowClient |
||
54 | */ |
||
55 | public function allow() |
||
59 | |||
60 | /** |
||
61 | * Cache-delay |
||
62 | * |
||
63 | * @return DelayClient |
||
64 | */ |
||
65 | public function cacheDelay() |
||
69 | |||
70 | /** |
||
71 | * Crawl-delay |
||
72 | * |
||
73 | * @return DelayClient |
||
74 | */ |
||
75 | public function crawlDelay() |
||
79 | |||
80 | /** |
||
81 | * RequestClient-rate |
||
82 | * |
||
83 | * @return RequestRateClient |
||
84 | */ |
||
85 | public function requestRate() |
||
89 | |||
90 | /** |
||
91 | * Disallow |
||
92 | * |
||
93 | * @return DisAllowClient |
||
94 | */ |
||
95 | public function disallow() |
||
99 | |||
100 | /** |
||
101 | * Robot-version |
||
102 | * |
||
103 | * @return RobotVersionClient |
||
104 | */ |
||
105 | public function robotVersion() |
||
109 | |||
110 | /** |
||
111 | * Rule export |
||
112 | * |
||
113 | * @return array |
||
114 | */ |
||
115 | public function getRules() |
||
128 | |||
129 | /** |
||
130 | * Visit-time |
||
131 | * |
||
132 | * @return VisitTimeClient |
||
133 | */ |
||
134 | public function visitTime() |
||
138 | } |
||
139 |