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#
| Property | Type | Description |
|---|---|---|
$alternativeTo readonly | string|null | line identifier this line is an alternative for, not included in the totals |
$optional readonly | bool | optional quote line, not included in the totals |
$serialNumbers readonly | list<string> | delivery note |
Methods#
| Method | Description |
|---|---|
->__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 = [],
)| Parameter | Type | Description |
|---|---|---|
$optional | bool = false | optional quote line, not included in the totals |
$alternativeTo | string|null = null | line identifier this line is an alternative for, not included in the totals |
$serialNumbers | list<string> = [] | delivery note |
isBillable()#
public function isBillable(): bool- Returns
bool
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