Column
in package
HEXONET Column
Table of Contents
Properties
- $length : int
- count of column data entries
- $data : array<string|int, string>
- column data container
- $key : string
- column key name
Methods
- __construct() : mixed
- Constructor
- getData() : array<string|int, string>
- Get column data
- getDataByIndex() : string|null
- Get column data at given index
- getKey() : string
- Get column name
- hasDataIndex() : bool
- Check if column has a given data index
Properties
$length
count of column data entries
public
int
$length
$data
column data container
private
array<string|int, string>
$data
$key
column key name
private
string
$key
Methods
__construct()
Constructor
public
__construct(string $key, array<string|int, string> $data) : mixed
Parameters
- $key : string
-
Column Name
- $data : array<string|int, string>
-
Column Data
getData()
Get column data
public
getData() : array<string|int, string>
Return values
array<string|int, string> —column data
getDataByIndex()
Get column data at given index
public
getDataByIndex(int $idx) : string|null
Parameters
- $idx : int
-
data index
Return values
string|null —data at given index
getKey()
Get column name
public
getKey() : string
Return values
string —column name
hasDataIndex()
Check if column has a given data index
private
hasDataIndex(int $idx) : bool
Parameters
- $idx : int
-
data index
Return values
bool —result