| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | abstract class QRDataModeAbstract implements QRDataModeInterface{ |
||
| 16 | |||
| 17 | /** |
||
| 18 | * the current data mode: Num, Alphanum, Kanji, Byte |
||
| 19 | */ |
||
| 20 | protected static int $datamode; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The data to write |
||
| 24 | */ |
||
| 25 | protected string $data; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * QRDataModeAbstract constructor. |
||
| 29 | */ |
||
| 30 | public function __construct(string $data){ |
||
| 31 | $this->data = $data; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * returns the character count of the $data string |
||
| 36 | */ |
||
| 37 | protected function getCharCount():int{ |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritDoc |
||
| 43 | */ |
||
| 44 | public function getDataMode():int{ |
||
| 46 | } |
||
| 47 | |||
| 49 |