Documentation

MaskPattern
in package

ISO/IEC 18004:2000 Section 8.8.1

Table of Contents

PATTERN_000  = 0b0
PATTERN_001  = 0b1
PATTERN_010  = 0b10
PATTERN_011  = 0b11
PATTERN_100  = 0b100
PATTERN_101  = 0b101
PATTERN_110  = 0b110
PATTERN_111  = 0b111
PATTERNS  = [self::PATTERN_000, self::PATTERN_001, self::PATTERN_010, self::PATTERN_011, self::PATTERN_100, self::PATTERN_101, self::PATTERN_110, self::PATTERN_111]
$maskPattern  : int
__construct()  : mixed
MaskPattern constructor.
getMask()  : Closure
Returns a closure that applies the mask for the chosen mask pattern.
getPattern()  : int
Returns the current mask pattern

Constants

PATTERNS

public mixed PATTERNS = [self::PATTERN_000, self::PATTERN_001, self::PATTERN_010, self::PATTERN_011, self::PATTERN_100, self::PATTERN_101, self::PATTERN_110, self::PATTERN_111]

Properties

Methods

__construct()

MaskPattern constructor.

public __construct(int $maskPattern) : mixed
Parameters
$maskPattern : int
Tags
throws
QRCodeException
Return values
mixed

getMask()

Returns a closure that applies the mask for the chosen mask pattern.

public getMask() : Closure

Note that some versions of the QR code standard have had errors in the section about mask patterns. The information below has been corrected.

Tags
see
https://www.thonky.com/qr-code-tutorial/mask-patterns
Return values
Closure

getPattern()

Returns the current mask pattern

public getPattern() : int
Return values
int

Search results