Record
in package
HEXONET Record
Table of Contents
Properties
- $data : array<string|int, string>
- row data container e.g.
Methods
- __construct() : mixed
- Constructor e.g.
- getData() : array<string|int, string>
- get row data
- getDataByKey() : string|null
- get row data for given column
- hasData() : bool
- check if record has data for given column
Properties
$data
row data container e.g.
private
array<string|int, string>
$data
$data = [
"DOMAIN" => "mydomain.com",
"USER" => "test.user",
// ... further column data ...
];
Methods
__construct()
Constructor e.g.
public
__construct(array<string|int, string> $data) : mixed
$data = [
"DOMAIN" => "mydomain.com",
"USER" => "test.user",
// ... further column data ...
];
Parameters
- $data : array<string|int, string>
-
data object
getData()
get row data
public
getData() : array<string|int, string>
Return values
array<string|int, string> —row data
getDataByKey()
get row data for given column
public
getDataByKey(string $key) : string|null
Parameters
- $key : string
-
column name
Return values
string|null —row data for given column or null if column does not exist
hasData()
check if record has data for given column
private
hasData(string $key) : bool
Parameters
- $key : string
-
column name
Return values
bool —boolean result