Skip to content

Novis\Spreadsheet\Cell

One value with its own Style, or one cell of rich text. Make one with Cell::of or Cell::rich and put it in a row in place of the value.

Members

3 members.

MemberSignature
constructorconstructor(mixed $value, Style $style, ?array<Run> $runs = null): void
ofof(mixed $value, Style $style): Cell
richrich(array<{ text: string, style?: Style }> $runs): Cell

Types

Run

type Run = { text: string, style: ?Style };

Properties

  • $cell->valuemixedthe value of the cell. It is null for a rich text cell.
  • $cell->styleStylethe style of the cell
  • $cell->runs?array<Run>the parts of a rich text cell, each with its text and its style. It is null for every other cell.