PHP Class App\services\ExpenseCategoryService

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

Protected Properties

Property Type Description
$categoryRepo App\Ninja\Repositories\ExpenseCategoryRepository
$datatableService DatatableService

Public Methods

Method Description
__construct ( ExpenseCategoryRepository $categoryRepo, DatatableService $datatableService ) CreditService constructor.
getDatatable ( $search ) : Illuminate\Http\JsonResponse
save ( $data ) : mixed | null

Protected Methods

Method Description
getRepo ( ) : CreditRepository

Method Details

__construct() public method

CreditService constructor.
public __construct ( ExpenseCategoryRepository $categoryRepo, DatatableService $datatableService )
$categoryRepo App\Ninja\Repositories\ExpenseCategoryRepository
$datatableService DatatableService

getDatatable() public method

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

getRepo() protected method

protected getRepo ( ) : CreditRepository
return CreditRepository

save() public method

public save ( $data ) : mixed | null
$data
return mixed | null

Property Details

$categoryRepo protected property

protected ExpenseCategoryRepository,App\Ninja\Repositories $categoryRepo
return App\Ninja\Repositories\ExpenseCategoryRepository

$datatableService protected property

protected DatatableService,App\services $datatableService
return DatatableService