Zum Inhalt springen

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#

PropertyTypeDescription
$id readonlystring
$showSubtotal readonlybool
$title readonlystring

Methods#

MethodDescription
->__construct()
->with()Returns a copy with the given properties replaced.

__construct()#

public function __construct(string $id, string $title, bool $showSubtotal = true)
ParameterTypeDescription
$idstring
$titlestring
$showSubtotalbool = true

with()#

public function with(array<string, mixed> $changes): static

Returns a copy with the given properties replaced.

ParameterTypeDescription
$changesarray<string, mixed>
Returns
static

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.