| 1 | <?php |
||
| 5 | class StringTransformer implements Transformer |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param mixed $value |
||
| 9 | * |
||
| 10 | * @return bool |
||
| 11 | */ |
||
| 12 | public function canTransform($value): bool |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $value |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function transform($value): string |
||
| 26 | |||
| 27 | protected function escape(string $value): string |
||
| 31 | } |
||
| 32 |