DocumentLineOptions
in package
uses
Immutable
Read onlyYes
FinalYes
Document specific line details, keyed by line identifier in {@see DocumentData}.
Table of Contents
Properties
- $alternativeTo : string|null
- $optional : bool
- $serialNumbers : array<string|int, mixed>
Methods
- __construct() : mixed
- isBillable() : bool
- with() : static
- Returns a copy with the given properties replaced.
Properties
$alternativeTo
public
string|null
$alternativeTo
= null
$optional
public
bool
$optional
= false
$serialNumbers
public
array<string|int, mixed>
$serialNumbers
= []
Attributes
- #[ListOf]
- 'string'
Methods
__construct()
public
__construct([bool $optional = false ][, string|null $alternativeTo = null ][, array<int, string> $serialNumbers = [] ]) : mixed
Parameters
- $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 : array<int, string> = []
-
delivery note
isBillable()
public
isBillable() : bool
Return values
boolwith()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>