PHP Класс App\Http\Controllers\InvoiceApiController

Наследование: extends BaseAPIController
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$entityType
$invoiceRepo

Открытые методы

Метод Описание
__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 )

Приватные методы

Метод Описание
prepareData ( $data, $client )
prepareItem ( $item )

Описание методов

__construct() публичный Метод

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 destroy ( UpdateInvoiceAPIRequest $request )
$request App\Http\Requests\UpdateInvoiceAPIRequest

download() публичный Метод

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

emailInvoice() публичный Метод

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

index() публичный Метод

public index ( )

show() публичный Метод

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

store() публичный Метод

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

update() публичный Метод

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

Описание свойств

$entityType защищенное свойство

protected $entityType

$invoiceRepo защищенное свойство

protected $invoiceRepo