QRDataModeAbstract
in package
implements
QRDataModeInterface
Interfaces, Classes, Traits and Enums
- QRDataModeInterface
- Specifies the methods reqired for the data modules (Number, Alphanum, Byte and Kanji)
Table of Contents
- $data : string
- The data to write
- $datamode : int
- the current data mode: Num, Alphanum, Kanji, Byte
- __construct() : mixed
- QRDataModeAbstract constructor.
- getDataMode() : int
- returns the current data mode constant
- getCharCount() : int
- returns the character count of the $data string
- getLengthBits() : int
- shortcut
Properties
$data
The data to write
protected
string
$data
$datamode
the current data mode: Num, Alphanum, Kanji, Byte
protected
static int
$datamode
Methods
__construct()
QRDataModeAbstract constructor.
public
__construct(string $data) : mixed
Parameters
- $data : string
Tags
Return values
mixed —getDataMode()
returns the current data mode constant
public
getDataMode() : int
Tags
Return values
int —getCharCount()
returns the character count of the $data string
protected
getCharCount() : int
Return values
int —getLengthBits()
shortcut
protected
static getLengthBits(int $versionNumber) : int
Parameters
- $versionNumber : int