API reference / Quittio \ Core \ Data \ Presentation
LineGroup
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Presentation\LineGroup · Source
Group of invoice lines with an optional subtotal. Presentation only.
Properties#
| Property | Type | Description |
|---|---|---|
$id readonly | string | |
$showSubtotal readonly | bool | |
$title readonly | string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(string $id, string $title, bool $showSubtotal = true)| Parameter | Type | Description |
|---|---|---|
$id | string | |
$title | string | |
$showSubtotal | bool = true |
with()#
public function with(array<string, mixed> $changes): staticReturns a copy with the given properties replaced.
| Parameter | Type | Description |
|---|---|---|
$changes | array<string, mixed> |
- Returns
static