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(mixed $value, Definition<string|int, mixed> $definition, int $rowNumber, int $columnIndex, string $sheetName) : Style|null
Parameters
- $value : mixed
-
the value being written
- $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