InvoiceRepositoryInterface
in
Interface InvoiceRepositoryInterface
Tags
Table of Contents
- add() : int
- Adds a new invoice in the database.
- deleteByInvoiceId() : $this|InvoiceRepositoryInterface
- Removes an invoice entry from the database.
- updateInvoiceFilename() : $this|InvoiceRepositoryInterface
- Updates the invoice file column for an invoice entry in the database.
Methods
add()
Adds a new invoice in the database.
public
add(InvoiceInformation $invoiceInfo) : int
Parameters
- $invoiceInfo : InvoiceInformation
-
Entity with invoice information.
Return values
int —The invoice_id of the new database entry.
deleteByInvoiceId()
Removes an invoice entry from the database.
public
deleteByInvoiceId(IdType $invoiceId) : $this|InvoiceRepositoryInterface
Parameters
- $invoiceId : IdType
-
invoice_id of entry to be removed.
Return values
$this|InvoiceRepositoryInterface —Same instance for chained method calls.
updateInvoiceFilename()
Updates the invoice file column for an invoice entry in the database.
public
updateInvoiceFilename(IdType $invoiceId, FilenameStringType $invoiceFilename) : $this|InvoiceRepositoryInterface
Parameters
- $invoiceId : IdType
- $invoiceFilename : FilenameStringType
Return values
$this|InvoiceRepositoryInterface —Same instance for chained method calls.