| 1 | <?php |
||
| 13 | class MapStep implements PrepareStep |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Whether to apply case folding. |
||
| 17 | * |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | protected $_fold; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Constructor. |
||
| 24 | * |
||
| 25 | * @param bool $fold_case Whether to apply case folding |
||
| 26 | */ |
||
| 27 | 38 | public function __construct(bool $fold_case = false) |
|
| 30 | 38 | } |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $string UTF-8 encoded string |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 37 | public function apply(string $string): string |
|
| 44 | } |
||
| 45 | } |
||
| 46 |