ColumnInterface
in
Common Column Interface
Table of Contents
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
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