Quittio 0.3 API

InvoiceFactory
in package

FinalYes

Test data factory: InvoiceData::factory()->reverseCharge()->withLines(5)->make().

Deterministic (no random values), so that snapshots stay stable.

Table of Contents

Methods

b2c()  : self
builder()  : InvoiceBuilder
calculated()  : InvoiceData
Invoice data with totals and VAT breakdown, calculated with $calculator (default: En16931Calculator).
creditNote()  : self
currency()  : self
export()  : self
intraCommunity()  : self
make()  : InvoiceData
Uncalculated invoice data.
new()  : self
number()  : self
reverseCharge()  : self
state()  : self
Free modification of the builder.
withLines()  : self

Methods

currency()

public currency(string $currency) : self
Parameters
$currency : string
Return values
self

intraCommunity()

public intraCommunity() : self
Return values
self

number()

public number(string $number) : self
Parameters
$number : string
Return values
self

reverseCharge()

public reverseCharge() : self
Return values
self

withLines()

public withLines(int $count) : self
Parameters
$count : int
Return values
self
On this page

Search results