1 | <?php |
||
16 | class TranscodeStep implements PrepareStep |
||
17 | { |
||
18 | /** |
||
19 | * ASN.1 type of the string. |
||
20 | * |
||
21 | * @var int |
||
22 | */ |
||
23 | protected $_type; |
||
24 | |||
25 | /** |
||
26 | * Constructor. |
||
27 | * |
||
28 | * @param int $type ASN.1 type tag of the string |
||
29 | */ |
||
30 | 58 | public function __construct(int $type) |
|
33 | 58 | } |
|
34 | |||
35 | /** |
||
36 | * @param string $string String to prepare |
||
37 | * |
||
38 | * @throws \LogicException If string type is not supported |
||
39 | * |
||
40 | * @return string UTF-8 encoded string |
||
41 | */ |
||
42 | 58 | public function apply(string $string): string |
|
65 | } |
||
66 | } |
||
67 |