\BaconQrCode\CommonEcBlocks

Encapsulates a set of error-correction blocks in one symbol version.

Most versions will use blocks of differing sizes within one version, so, this encapsulates the parameters for each set of blocks. It also holds the number of error-correction codewords per block since it will be the same across all blocks within one version.

Summary

Methods
Properties
Constants
__construct()
getEcCodewordsPerBlock()
getNumBlocks()
getTotalEcCodewords()
getEcBlocks()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$ecCodewordsPerBlock
$ecBlocks
N/A

Properties

$ecCodewordsPerBlock

$ecCodewordsPerBlock : int

Number of EC codewords per block.

Type

int

$ecBlocks

$ecBlocks : \BaconQrCode\Common\EcBlock[]

List of EC blocks.

Type

EcBlock[]

Methods

__construct()

__construct(int  $ecCodewordsPerBlock, \BaconQrCode\Common\EcBlock  ...$ecBlocks) : mixed

Parameters

int $ecCodewordsPerBlock
\BaconQrCode\Common\EcBlock $ecBlocks variadic

Returns

mixed —

getEcCodewordsPerBlock()

getEcCodewordsPerBlock() : int

Returns the number of EC codewords per block.

Returns

int —

getNumBlocks()

getNumBlocks() : int

Returns the total number of EC block appearances.

Returns

int —

getTotalEcCodewords()

getTotalEcCodewords() : int

Returns the total count of EC codewords.

Returns

int —

getEcBlocks()

getEcBlocks() : \BaconQrCode\Common\EcBlock[]

Returns the EC blocks included in this collection.

Returns

\BaconQrCode\Common\EcBlock[] —