1 | <?php |
||
13 | class CleanParam implements DirectiveInterface, RobotsTxtInterface |
||
14 | { |
||
15 | use Toolbox; |
||
16 | use UrlTools; |
||
17 | |||
18 | /** |
||
19 | * Directive |
||
20 | */ |
||
21 | const DIRECTIVE = self::DIRECTIVE_CLEAN_PARAM; |
||
22 | |||
23 | /** |
||
24 | * Clean-param array |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $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 | * Check |
||
57 | * |
||
58 | * @param string $path |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function check($path) |
||
78 | |||
79 | /** |
||
80 | * Export |
||
81 | * |
||
82 | * @return array |
||
83 | */ |
||
84 | public function export() |
||
88 | } |
||
89 |