PHP Class App\Ninja\Repositories\InvoiceRepository

Inheritance: extends BaseRepository
Afficher le fichier Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Свойство Type Description
$documentRepo

Méthodes publiques

Méthode 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 méthode

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

all() public méthode

public all ( )

cloneInvoice() public méthode

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

createRecurringInvoice() public méthode

public createRecurringInvoice ( Invoice $recurInvoice ) : mixed
$recurInvoice app\models\Invoice
Résultat mixed

findInvoiceByInvitation() public méthode

public findInvoiceByInvitation ( $invitationKey ) : Invitation | boolean
$invitationKey
Résultat app\models\Invitation | boolean

findNeedingReminding() public méthode

public findNeedingReminding ( App\Models\Account $account ) : mixed
$account App\Models\Account
Résultat mixed

findOpenInvoices() public méthode

public findOpenInvoices ( $clientId, $entityType = false ) : mixed
$clientId
Résultat mixed

getClassName() public méthode

public getClassName ( )

getClientDatatable() public méthode

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

getClientRecurringDatatable() public méthode

public getClientRecurringDatatable ( $contactId )

getInvoices() public méthode

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

getRecurringInvoices() public méthode

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

markSent() public méthode

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

save() public méthode

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

Property Details

$documentRepo protected_oe property

protected $documentRepo