RecordInterface
in
Common Record Interface
Table of Contents
Methods
- __construct() : mixed
- Constructor e.g.
- getData() : array<string|int, string>
- get row data
- getDataByKey() : string|null
- get row data for given column
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