| 1 | <?php |
||
| 11 | class CleanParam implements DirectiveInterface |
||
| 12 | { |
||
| 13 | use ObjectTools; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Directive |
||
| 17 | */ |
||
| 18 | const DIRECTIVE = 'Clean-param'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Clean-param array |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $array = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * CleanParam constructor. |
||
| 28 | */ |
||
| 29 | public function __construct() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Add |
||
| 35 | * |
||
| 36 | * @param string $line |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | public function add($line) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Check |
||
| 54 | * |
||
| 55 | * @param string $path |
||
| 56 | * @return bool |
||
| 57 | */ |
||
| 58 | public function check($path) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Export |
||
| 78 | * |
||
| 79 | * @return array |
||
| 80 | */ |
||
| 81 | public function export() |
||
| 85 | } |
||
| 86 |