| 1 | <?php |
||
| 5 | class Obfuscate extends AbstractFilter |
||
| 6 | { |
||
| 7 | // how may characters from the benining are left untouched |
||
| 8 | const OPTION_START_CHARACTERS = 'start_characters'; |
||
| 9 | // how may characters from the end are left untouched |
||
| 10 | const OPTION_END_CHARACTERS = 'end_characters'; |
||
| 11 | // replacement character |
||
| 12 | const OPTION_REPLACEMENT_CHAR = 'replacement_char'; |
||
| 13 | |||
| 14 | protected $options = [ |
||
| 15 | self::OPTION_START_CHARACTERS => 0, |
||
| 16 | self::OPTION_END_CHARACTERS => 0, |
||
| 17 | self::OPTION_REPLACEMENT_CHAR => '*' |
||
| 18 | ]; |
||
| 19 | |||
| 20 | 7 | public function filterSingle($value, string $valueIdentifier = null) |
|
| 40 | } |
||
| 41 |