1 | <?php |
||
20 | class AlphaNum extends QRDataAbstract{ |
||
21 | |||
22 | const CHAR_MAP = [ |
||
23 | '0', '1', '2', '3', '4', '5', '6', '7', |
||
24 | '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', |
||
25 | 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', |
||
26 | 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', |
||
27 | 'W', 'X', 'Y', 'Z', ' ', '$', '%', '*', |
||
28 | '+', '-', '.', '/', ':', |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * @var int |
||
33 | */ |
||
34 | protected $datamode = QRCode::DATA_ALPHANUM; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $lengthBits = [9, 11, 13]; |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | protected function write(string $data){ |
||
55 | |||
56 | /** |
||
57 | * @param string $chr |
||
58 | * |
||
59 | * @return int |
||
60 | * @throws \chillerlan\QRCode\Data\QRCodeDataException |
||
61 | */ |
||
62 | protected function getCharCode(string $chr):int { |
||
71 | |||
72 | } |
||
73 |