PHP Class App\Http\Controllers\InvoiceApiController

Inheritance: extends BaseAPIController
Mostrar archivo Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$entityType
$invoiceRepo

Public Methods

Method Description
__construct ( InvoiceService $invoiceService, InvoiceRepository $invoiceRepo, ClientRepository $clientRepo, PaymentRepository $paymentRepo, ContactMailer $mailer, PaymentService $paymentService )
destroy ( UpdateInvoiceAPIRequest $request )
download ( App\Http\Requests\InvoiceRequest $request )
emailInvoice ( App\Http\Requests\InvoiceRequest $request )
index ( )
show ( App\Http\Requests\InvoiceRequest $request )
store ( CreateInvoiceAPIRequest $request )
update ( UpdateInvoiceAPIRequest $request, $publicId )

Private Methods

Method Description
prepareData ( $data, $client )
prepareItem ( $item )

Method Details

__construct() public method

public __construct ( InvoiceService $invoiceService, InvoiceRepository $invoiceRepo, ClientRepository $clientRepo, PaymentRepository $paymentRepo, ContactMailer $mailer, PaymentService $paymentService )
$invoiceService App\services\InvoiceService
$invoiceRepo App\Ninja\Repositories\InvoiceRepository
$clientRepo App\Ninja\Repositories\ClientRepository
$paymentRepo App\Ninja\Repositories\PaymentRepository
$mailer App\Ninja\Mailers\ContactMailer
$paymentService App\services\PaymentService

destroy() public method

public destroy ( UpdateInvoiceAPIRequest $request )
$request App\Http\Requests\UpdateInvoiceAPIRequest

download() public method

public download ( App\Http\Requests\InvoiceRequest $request )
$request App\Http\Requests\InvoiceRequest

emailInvoice() public method

public emailInvoice ( App\Http\Requests\InvoiceRequest $request )
$request App\Http\Requests\InvoiceRequest

index() public method

public index ( )

show() public method

public show ( App\Http\Requests\InvoiceRequest $request )
$request App\Http\Requests\InvoiceRequest

store() public method

public store ( CreateInvoiceAPIRequest $request )
$request App\Http\Requests\CreateInvoiceAPIRequest

update() public method

public update ( UpdateInvoiceAPIRequest $request, $publicId )
$request App\Http\Requests\UpdateInvoiceAPIRequest

Property Details

$entityType protected_oe property

protected $entityType

$invoiceRepo protected_oe property

protected $invoiceRepo