Flow PHP

CellStyler

Methods

style()  : Style|null
Return a Style for the given cell, or null for default styling.

Methods

style()

Return a Style for the given cell, or null for default styling.

public style(null|bool|DateTimeInterface|float|int|string $value, Definition<string|int, mixed> $definition, int $rowNumber, int $columnIndex, string $sheetName) : Style|null
Parameters
$value : null|bool|DateTimeInterface|float|int|string

the cell as it is written: a backed enum's value or a unit enum's name, a uuid as text, a list / map / structure as JSON text, a date or datetime as a DateTimeInterface

$definition : Definition<string|int, mixed>

the column the value belongs to

$rowNumber : int

the 1-based row number in the sheet (1 = first data row, not header)

$columnIndex : int

the 0-based column index

$sheetName : string

the name of the sheet being written to

Return values
Style|null
On this page

Search results