\BaconQrCode\EncoderByteMatrix

Byte matrix.

Summary

Methods
Properties
Constants
__construct()
getWidth()
getHeight()
getArray()
get()
set()
clear()
__toString()
No public properties found
No constants found
No protected methods found
$bytes
$width
$height
N/A
No private methods found
No private properties found
N/A

Properties

$bytes

$bytes : \SplFixedArray

Bytes in the matrix, represented as array.

Type

\SplFixedArray

$width

$width : integer

Width of the matrix.

Type

integer

$height

$height : integer

Height of the matrix.

Type

integer

Methods

__construct()

__construct(integer  $width, integer  $height) 

Creates a new byte matrix.

Parameters

integer $width
integer $height

getWidth()

getWidth() : integer

Gets the width of the matrix.

Returns

integer

getHeight()

getHeight() : integer

Gets the height of the matrix.

Returns

integer

getArray()

getArray() : \SplFixedArray

Gets the internal representation of the matrix.

Returns

\SplFixedArray

get()

get(integer  $x, integer  $y) : integer

Gets the byte for a specific position.

Parameters

integer $x
integer $y

Returns

integer

set()

set(integer  $x, integer  $y, integer  $value) : void

Sets the byte for a specific position.

Parameters

integer $x
integer $y
integer $value

clear()

clear(integer  $value) : void

Clears the matrix with a specific value.

Parameters

integer $value

__toString()

__toString() : string

Returns a string representation of the matrix.

Returns

string