Zum Inhalt springen

API reference / Quittio \ Core \ Documents

DocumentLineOptions

final readonly class in quittio/core · uses Immutable

Quittio\Core\Documents\DocumentLineOptions · Source

Document specific line details, keyed by line identifier in {@see DocumentData}.

Properties#

PropertyTypeDescription
$alternativeTo readonlystring|nullline identifier this line is an alternative for, not included in the totals
$optional readonlybooloptional quote line, not included in the totals
$serialNumbers readonlylist<string>delivery note

Methods#

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

__construct()#

public function __construct(
    bool $optional = false,
    string|null $alternativeTo = null,
    list<string> $serialNumbers = [],
)
ParameterTypeDescription
$optionalbool = falseoptional quote line, not included in the totals
$alternativeTostring|null = nullline identifier this line is an alternative for, not included in the totals
$serialNumberslist<string> = []delivery note

isBillable()#

public function isBillable(): bool
Returns
bool

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.