\BaconQrCode\CommonEcBlock

Encapsualtes the parameters for one error-correction block in one symbol version. This includes the number of data codewords, and the number of times a block with these parameters is used consecutively in the QR code version's format.

Summary

Methods
Properties
Constants
__construct()
getCount()
getDataCodewords()
No public properties found
No constants found
No protected methods found
$count
$dataCodewords
N/A
No private methods found
No private properties found
N/A

Properties

$count

$count : integer

How many times the block is used.

Type

integer

$dataCodewords

$dataCodewords : integer

Number of data codewords.

Type

integer

Methods

__construct()

__construct(integer  $count, integer  $dataCodewords) 

Creates a new EC block.

Parameters

integer $count
integer $dataCodewords

getCount()

getCount() : integer

Returns how many times the block is used.

Returns

integer

getDataCodewords()

getDataCodewords() : integer

Returns the number of data codewords.

Returns

integer