InvoiceRepository

Implements \InvoiceRepositoryInterface

Class InvoiceRepository

category

System

package

Invoice

Methods

InvoiceRepository constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Adds a new invoice in the database.

add(\InvoiceInformation $invoiceInfo) : integer

Arguments

$invoiceInfo

\InvoiceInformation

Entity with invoice information.

Response

integer

The invoice_id of the new database entry.

Removes an invoice entry from the database.

deleteByInvoiceId(\IdType $invoiceId) : $this|\InvoiceRepository

Arguments

$invoiceId

\IdType

invoice_id of entry to be removed.

Response

$this|\InvoiceRepository

Same instance for chained method calls.

Updates the invoice file column for an invoice entry in the database.

updateInvoiceFilename(\IdType $invoiceId, \FilenameStringType $invoiceFilename) : $this|\InvoiceRepository

Arguments

$invoiceId

\IdType

$invoiceFilename

\FilenameStringType

Response

$this|\InvoiceRepository

Same instance for chained method calls.

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

tableName

tableName : string
var

Type(s)

string