| 1 | <?php |
||
| 18 | abstract class QRDataAbstract implements QRDataInterface{ |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $data; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | public $dataLength; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $lengthBits = [0, 0, 0]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * QRDataAbstract constructor. |
||
| 37 | * |
||
| 38 | * @param string $data |
||
| 39 | */ |
||
| 40 | public function __construct($data){ |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param int $type |
||
| 47 | * |
||
| 48 | * @return int |
||
| 49 | * @throws \chillerlan\QRCode\Data\QRCodeDataException |
||
| 50 | * @see QRCode::createData() |
||
| 51 | * @codeCoverageIgnore |
||
| 52 | */ |
||
| 53 | public function getLengthInBits($type){ |
||
| 67 | |||
| 68 | } |
||
| 69 |