__construct(SettingsContainerInterface $options = null) |
- |
see QROptions and SettingsContainerInterface |
setOptions(SettingsContainerInterface $options) |
self |
Sets an options instance, internally called via the constructor |
render(string $data, string $file = null) |
mixed |
renders a QR Code for the given $data and QROptions, saves $file optionally, output depends on the chosen mode, see QROutputInterface::dump() |
renderMatrix(QRMatrix $matrix, string $file = null) |
mixed |
renders a QR Code for the given QRMatrix and QROptions, saves $file optionally, output depends on the chosen mode, see QROutputInterface::dump() |
getQRMatrix() |
QRMatrix |
returns a QRMatrix object for the given $data and current QROptions |
addSegment(QRDataModeInterface $segment) |
self |
Adds a QRDataModeInterface segment |
clearSegments() |
self |
Clears the data segments array |
addNumericSegment(string $data) |
self |
Adds a numeric data segment |
addAlphaNumSegment(string $data) |
self |
Adds an alphanumeric data segment |
addKanjiSegment(string $data) |
self |
Adds a Kanji data segment (Japanese 13-bit double-byte characters, Shift-JIS) |
addHanziSegment(string $data) |
self |
Adds a Hanzi data segment (simplified Chinese 13-bit double-byte characters, GB2312/GB18030) |
addByteSegment(string $data) |
self |
Adds an 8-bit byte data segment |
addEciDesignator(int $encoding) |
self |
Adds a standalone ECI designator |
addEciSegment(int $encoding, string $data) |
self |
Adds an ECI data segment (including designator) |
readFromFile(string $path) |
DecoderResult |
Reads a QR Code from a given file |
readFromBlob(string $blob) |
DecoderResult |
Reads a QR Code from the given data blob |
readFromSource(LuminanceSourceInterface $source) |
DecoderResult |
Reads a QR Code from the given luminance source |