API reference / Quittio \ Core \ Exceptions
InvalidInvoiceData
final class in quittio/core · extends InvalidArgumentException · implements QuittioException
Quittio\Core\Exceptions\InvalidInvoiceData · Source
Builder or data input is structurally incomplete.
Methods#
| Method | Description |
|---|---|
::duplicateLineId() | Exception for a line identifier (BT-126) that is used more than once, also across sub lines. |
::invalidXmlCharacters() | Exception for a value of $element that contains characters XML 1.0 cannot represent (control characters or invalid UTF-8). |
::missing() | Exception for a missing essential part, e.g. missing('BT-27', 'seller name'). |
duplicateLineId()#
public static function duplicateLineId(string $id): selfException for a line identifier (BT-126) that is used more than once, also across sub lines.
| Parameter | Type | Description |
|---|---|---|
$id | string |
- Returns
self
invalidXmlCharacters()#
public static function invalidXmlCharacters(string $element): selfException for a value of $element that contains characters XML 1.0 cannot represent (control characters or invalid UTF-8).
| Parameter | Type | Description |
|---|---|---|
$element | string |
- Returns
self
missing()#
public static function missing(string $bt, string $what): selfException for a missing essential part, e.g. missing('BT-27', 'seller name').
| Parameter | Type | Description |
|---|---|---|
$bt | string | |
$what | string |
- Returns
self