| 1 | <?php |
||
| 8 | class RemoveTrailingCharacters extends AbstractFilter implements FilterInterface |
||
| 9 | { |
||
| 10 | protected $punctuation; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string[] $punctuation Array of punctuation to be removed. |
||
| 14 | */ |
||
| 15 | 8 | public function __construct($punctuation = array('.', ',', ';', '?', '!', '{' , '}', '[', ']')) |
|
| 19 | |||
| 20 | /** {@inheritdoc} */ |
||
| 21 | 15 | public function filterWord($word) |
|
| 31 | } |