Table
Table of Contents
- $header : array<string|int, mixed>
- Table header.
- $items : array<string|int, mixed>
- Table item.
- __construct() : void
- Create a new Table instance.
- draw() : void
- Draw the table.
- printBorder() : array<string|int, mixed>
- Print table border.
- printRow() : self
- Print the row.
Properties
$header
Table header.
private
array<string|int, mixed>
$header
= []
Tags
$items
Table item.
private
array<string|int, mixed>
$items
= []
Tags
Methods
__construct()
Create a new Table instance.
public
__construct(array<string|int, mixed> $header, array<string|int, mixed> $items) : void
Parameters
- $header : array<string|int, mixed>
- $items : array<string|int, mixed>
Return values
void —draw()
Draw the table.
public
draw() : void
Tags
Return values
void —printBorder()
Print table border.
public
printBorder(mixed $row) : array<string|int, mixed>
Parameters
- $row : mixed
Tags
Return values
array<string|int, mixed> —printRow()
Print the row.
public
printRow(mixed $row[, mixed $head = false ]) : self
Parameters
- $row : mixed
- $head : mixed = false