PHP Class App\Ninja\Repositories\InvoiceRepository

Inheritance: extends BaseRepository
ファイルを表示 Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$documentRepo

Public Methods

Method Description
__construct ( PaymentService $paymentService, DocumentRepository $documentRepo )
all ( )
cloneInvoice ( Invoice $invoice, null $quotePublicId = null ) : mixed
createRecurringInvoice ( Invoice $recurInvoice ) : mixed
findInvoiceByInvitation ( $invitationKey ) : Invitation | boolean
findNeedingReminding ( App\Models\Account $account ) : mixed
findOpenInvoices ( $clientId, $entityType = false ) : mixed
getClassName ( )
getClientDatatable ( $contactId, $entityType, $search )
getClientRecurringDatatable ( $contactId )
getInvoices ( $accountId, $clientPublicId = false, $entityType = ENTITY_INVOICE, $filter = false )
getRecurringInvoices ( $accountId, $clientPublicId = false, $filter = false )
markSent ( Invoice $invoice )
save ( array $data, Invoice $invoice = null ) : Invoice | mixed

Method Details

__construct() public method

public __construct ( PaymentService $paymentService, DocumentRepository $documentRepo )
$paymentService App\services\PaymentService
$documentRepo DocumentRepository

all() public method

public all ( )

cloneInvoice() public method

public cloneInvoice ( Invoice $invoice, null $quotePublicId = null ) : mixed
$invoice app\models\Invoice
$quotePublicId null
return mixed

createRecurringInvoice() public method

public createRecurringInvoice ( Invoice $recurInvoice ) : mixed
$recurInvoice app\models\Invoice
return mixed

findInvoiceByInvitation() public method

public findInvoiceByInvitation ( $invitationKey ) : Invitation | boolean
$invitationKey
return app\models\Invitation | boolean

findNeedingReminding() public method

public findNeedingReminding ( App\Models\Account $account ) : mixed
$account App\Models\Account
return mixed

findOpenInvoices() public method

public findOpenInvoices ( $clientId, $entityType = false ) : mixed
$clientId
return mixed

getClassName() public method

public getClassName ( )

getClientDatatable() public method

public getClientDatatable ( $contactId, $entityType, $search )

getClientRecurringDatatable() public method

public getClientRecurringDatatable ( $contactId )

getInvoices() public method

public getInvoices ( $accountId, $clientPublicId = false, $entityType = ENTITY_INVOICE, $filter = false )

getRecurringInvoices() public method

public getRecurringInvoices ( $accountId, $clientPublicId = false, $filter = false )

markSent() public method

public markSent ( Invoice $invoice )
$invoice app\models\Invoice

save() public method

public save ( array $data, Invoice $invoice = null ) : Invoice | mixed
$data array
$invoice app\models\Invoice
return app\models\Invoice | mixed

Property Details

$documentRepo protected_oe property

protected $documentRepo