1 | <?php |
||
13 | class CleanParamParser implements ParserInterface, RobotsTxtInterface |
||
14 | { |
||
15 | use DirectiveParserCommons; |
||
16 | use UrlParser; |
||
17 | |||
18 | /** |
||
19 | * Directive |
||
20 | */ |
||
21 | const DIRECTIVE = self::DIRECTIVE_CLEAN_PARAM; |
||
22 | |||
23 | /** |
||
24 | * Clean-param array |
||
25 | * @var array |
||
26 | */ |
||
27 | private $array = []; |
||
28 | |||
29 | /** |
||
30 | * CleanParam constructor. |
||
31 | */ |
||
32 | public function __construct() |
||
35 | |||
36 | /** |
||
37 | * Add |
||
38 | * |
||
39 | * @param string $line |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function add($line) |
||
54 | |||
55 | /** |
||
56 | * Client |
||
57 | * |
||
58 | * @return CleanParamClient |
||
59 | */ |
||
60 | public function client() |
||
64 | |||
65 | /** |
||
66 | * Rule array |
||
67 | * |
||
68 | * @return string[][][] |
||
69 | */ |
||
70 | public function getRules() |
||
74 | |||
75 | /** |
||
76 | * Render |
||
77 | * |
||
78 | * @return string[] |
||
79 | */ |
||
80 | public function render() |
||
90 | } |
||
91 |