PHP Class App\services\InvoiceService

Inheritance: extends BaseService
Mostrar archivo Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$clientRepo App\Ninja\Repositories\ClientRepository
$datatableService DatatableService
$invoiceRepo App\Ninja\Repositories\InvoiceRepository

Public Methods

Method Description
__construct ( ClientRepository $clientRepo, InvoiceRepository $invoiceRepo, DatatableService $datatableService ) InvoiceService constructor.
approveQuote ( $quote, Invitation $invitation = null ) : mixed | null
convertQuote ( $quote ) : mixed
getDatatable ( $accountId, $clientPublicId = null, $entityType, $search )
save ( array $data, Invoice $invoice = null ) : Invoice | Invoice | mixed

Protected Methods

Method Description
getRepo ( ) : InvoiceRepository

Method Details

__construct() public method

InvoiceService constructor.
public __construct ( ClientRepository $clientRepo, InvoiceRepository $invoiceRepo, DatatableService $datatableService )
$clientRepo App\Ninja\Repositories\ClientRepository
$invoiceRepo App\Ninja\Repositories\InvoiceRepository
$datatableService DatatableService

approveQuote() public method

public approveQuote ( $quote, Invitation $invitation = null ) : mixed | null
$quote
$invitation app\models\Invitation
return mixed | null

convertQuote() public method

public convertQuote ( $quote ) : mixed
$quote
return mixed

getDatatable() public method

public getDatatable ( $accountId, $clientPublicId = null, $entityType, $search )

getRepo() protected method

protected getRepo ( ) : InvoiceRepository
return App\Ninja\Repositories\InvoiceRepository

save() public method

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

Property Details

$clientRepo protected_oe property

protected ClientRepository,App\Ninja\Repositories $clientRepo
return App\Ninja\Repositories\ClientRepository

$datatableService protected_oe property

protected DatatableService,App\services $datatableService
return DatatableService

$invoiceRepo protected_oe property

protected InvoiceRepository,App\Ninja\Repositories $invoiceRepo
return App\Ninja\Repositories\InvoiceRepository