LineGroup
in package
uses
Immutable
Read onlyYes
FinalYes
Group of invoice lines with an optional subtotal. Presentation only.
Table of Contents
Properties
- $id : string
- $showSubtotal : bool
- $title : string
Methods
- __construct() : mixed
- with() : static
- Returns a copy with the given properties replaced.
Properties
$id
public
string
$id
$showSubtotal
public
bool
$showSubtotal
= true
$title
public
string
$title
Methods
__construct()
public
__construct(string $id, string $title[, bool $showSubtotal = true ]) : mixed
Parameters
- $id : string
- $title : string
- $showSubtotal : bool = true
with()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>