| 1 | <?php |
||
| 8 | class RemoveByLength extends AbstractFilter implements FilterInterface |
||
| 9 | { |
||
| 10 | protected $maxLength; |
||
| 11 | protected $minLength; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param bool|int $minLength The minimal length or false |
||
| 15 | * @param bool|int $maxLength The maximal length or false |
||
| 16 | */ |
||
| 17 | 3 | public function __construct($minLength = false, $maxLength = false) |
|
| 22 | |||
| 23 | /** {@inheritdoc} */ |
||
| 24 | 2 | public function keepWord($word) |
|
| 38 | } |
||
| 39 |