| 1 | <?php |
||
| 8 | class RemoveCharacters extends AbstractFilter implements FilterInterface |
||
| 9 | { |
||
| 10 | protected $unwantedCharacters; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param array $unwantedCharacters Array of characters to be removed. |
||
| 14 | */ |
||
| 15 | 8 | public function __construct($unwantedCharacters = null) |
|
| 24 | |||
| 25 | /** {@inheritdoc} */ |
||
| 26 | 11 | public function filterWord($word) |
|
| 34 | } |