PHP Class App\services\ExpenseService

Inheritance: extends BaseService
Show file Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$datatableService DatatableService
$expenseRepo App\Ninja\Repositories\ExpenseRepository

Public Methods

Method Description
__construct ( ExpenseRepository $expenseRepo, DatatableService $datatableService ) ExpenseService constructor.
getDatatable ( $search ) : Illuminate\Http\JsonResponse
getDatatableVendor ( $vendorPublicId ) : Illuminate\Http\JsonResponse
save ( $data, null $expense = null ) : mixed | null

Protected Methods

Method Description
getRepo ( ) : ExpenseRepository

Method Details

__construct() public method

ExpenseService constructor.
public __construct ( ExpenseRepository $expenseRepo, DatatableService $datatableService )
$expenseRepo App\Ninja\Repositories\ExpenseRepository
$datatableService DatatableService

getDatatable() public method

public getDatatable ( $search ) : Illuminate\Http\JsonResponse
$search
return Illuminate\Http\JsonResponse

getDatatableVendor() public method

public getDatatableVendor ( $vendorPublicId ) : Illuminate\Http\JsonResponse
$vendorPublicId
return Illuminate\Http\JsonResponse

getRepo() protected method

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

save() public method

public save ( $data, null $expense = null ) : mixed | null
$data
$expense null
return mixed | null

Property Details

$datatableService protected property

protected DatatableService,App\services $datatableService
return DatatableService

$expenseRepo protected property

protected ExpenseRepository,App\Ninja\Repositories $expenseRepo
return App\Ninja\Repositories\ExpenseRepository