| 1 | <?php |
||
| 8 | class ChangeCase extends AbstractFilter implements FilterInterface |
||
| 9 | { |
||
| 10 | const UPPERCASE = 'uppercase'; |
||
| 11 | const LOWERCASE = 'lowercase'; |
||
| 12 | const UCFIRST = 'ucfirst'; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | protected $case; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $case |
||
| 19 | */ |
||
| 20 | 1 | public function __construct($case) |
|
| 24 | |||
| 25 | /** {@inheritdoc} */ |
||
| 26 | 3 | public function filterWord($word) |
|
| 42 | } |