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
PATTERN_000
public
mixed
PATTERN_000
= 0b0
PATTERN_001
public
mixed
PATTERN_001
= 0b1
PATTERN_010
public
mixed
PATTERN_010
= 0b10
PATTERN_011
public
mixed
PATTERN_011
= 0b11
PATTERN_100
public
mixed
PATTERN_100
= 0b100
PATTERN_101
public
mixed
PATTERN_101
= 0b101
PATTERN_110
public
mixed
PATTERN_110
= 0b110
PATTERN_111
public
mixed
PATTERN_111
= 0b111
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
$maskPattern
private
int
$maskPattern
Methods
__construct()
MaskPattern constructor.
public
__construct(int $maskPattern) : mixed
Parameters
- $maskPattern : int
Tags
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
Return values
Closure —getPattern()
Returns the current mask pattern
public
getPattern() : int