ExcelEncoder
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- column() : array<int, null|bool|DateTimeInterface|float|int|string>
- A column's cells read once from its physicals: scalars as they are, a datetime or date as a DateTimeInterface (the reader types a cell from its style, a formatted string is any other text), a time in the time format, a backed enum as its backing value, every other type as TextValues renders it.
- encode() : array<int, array<int, null|bool|DateTimeInterface|float|int|string>>
- encodeHeader() : array<int, string>
Methods
__construct()
public
__construct([string $timeFormat = '%H:%I:%S' ][, TextValues $text = new TextValues() ]) : mixed
Parameters
- $timeFormat : string = '%H:%I:%S'
- $text : TextValues = new TextValues()
column()
A column's cells read once from its physicals: scalars as they are, a datetime or date as a DateTimeInterface (the reader types a cell from its style, a formatted string is any other text), a time in the time format, a backed enum as its backing value, every other type as TextValues renders it.
public
column(Type<string|int, mixed> $type, Column $column) : array<int, null|bool|DateTimeInterface|float|int|string>
Parameters
- $type : Type<string|int, mixed>
- $column : Column
Return values
array<int, null|bool|DateTimeInterface|float|int|string>encode()
public
encode(Rows $rows) : array<int, array<int, null|bool|DateTimeInterface|float|int|string>>
Parameters
- $rows : Rows
Return values
array<int, array<int, null|bool|DateTimeInterface|float|int|string>>encodeHeader()
public
encodeHeader(array<int, string> $headers) : array<int, string>
Parameters
- $headers : array<int, string>