\BaconQrCode\EncoderByteMatrix

Byte matrix.

Summary

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

Properties

$bytes

$bytes : \SplFixedArray<\SplFixedArray<int>>

Bytes in the matrix, represented as array.

Type

SplFixedArray>

$width

$width : int

Width of the matrix.

Type

int

$height

$height : int

Height of the matrix.

Type

int

Methods

__construct()

__construct(int  $width, int  $height) : mixed

Parameters

int $width
int $height

Returns

mixed —

getWidth()

getWidth() : int

Gets the width of the matrix.

Returns

int —

getHeight()

getHeight() : int

Gets the height of the matrix.

Returns

int —

getArray()

getArray() : \SplFixedArray<\SplFixedArray<int>>

Gets the internal representation of the matrix.

Returns

\SplFixedArray<\SplFixedArray> —

getBytes()

getBytes() : \Traversable<int>

Returns

\Traversable

get()

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

Gets the byte for a specific position.

Parameters

int $x
int $y

Returns

int —

set()

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

Sets the byte for a specific position.

Parameters

int $x
int $y
int $value

clear()

clear(int  $value) : void

Clears the matrix with a specific value.

Parameters

int $value

__clone()

__clone() : mixed

Returns

mixed —

__toString()

__toString() : string

Returns a string representation of the matrix.

Returns

string —