Documentation

QrCode
in package

QR code.

Table of Contents

NUM_MASK_PATTERNS  = 8
Number of possible mask patterns.
$errorCorrectionLevel  : ErrorCorrectionLevel
EC level of the QR code.
$maskPattern  : int
Mask pattern of the QR code.
$matrix  : ByteMatrix
Matrix of the QR code.
$mode  : Mode
Mode of the QR code.
$version  : Version
Version of the QR code.
__construct()  : mixed
__toString()  : string
Returns a string representation of the QR code.
getErrorCorrectionLevel()  : ErrorCorrectionLevel
Gets the EC level.
getMaskPattern()  : int
Gets the mask pattern.
getMatrix()  : ByteMatrix
Gets the matrix.
getMode()  : Mode
Gets the mode.
getVersion()  : Version
Gets the version.
isValidMaskPattern()  : bool
Validates whether a mask pattern is valid.

Constants

NUM_MASK_PATTERNS

Number of possible mask patterns.

public mixed NUM_MASK_PATTERNS = 8

Properties

$maskPattern

Mask pattern of the QR code.

private int $maskPattern = -1

Methods

__toString()

Returns a string representation of the QR code.

public __toString() : string
Return values
string

getMaskPattern()

Gets the mask pattern.

public getMaskPattern() : int
Return values
int

isValidMaskPattern()

Validates whether a mask pattern is valid.

public static isValidMaskPattern(int $maskPattern) : bool
Parameters
$maskPattern : int
Return values
bool

Search results