PHP Class app\http\controllers\TaxRateApiController

Inheritance: extends BaseAPIController
Show file Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$entityType string
$taxRateRepo App\Ninja\Repositories\TaxRateRepository

Public Methods

Method Description
__construct ( TaxRateRepository $taxRateRepo ) TaxRateApiController constructor.
index ( )
store ( CreateTaxRateRequest $request )
update ( UpdateTaxRateRequest $request, $publicId ) : Illuminate\Http\Response

Method Details

__construct() public method

TaxRateApiController constructor.
public __construct ( TaxRateRepository $taxRateRepo )
$taxRateRepo App\Ninja\Repositories\TaxRateRepository

index() public method

public index ( )

store() public method

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

update() public method

public update ( UpdateTaxRateRequest $request, $publicId ) : Illuminate\Http\Response
$request App\Http\Requests\UpdateTaxRateRequest
$publicId
return Illuminate\Http\Response

Property Details

$entityType protected property

protected string $entityType
return string

$taxRateRepo protected property

protected TaxRateRepository,App\Ninja\Repositories $taxRateRepo
return App\Ninja\Repositories\TaxRateRepository