PHP Class App\services\CreditService

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

Protected Properties

Property Type Description
$creditRepo App\Ninja\Repositories\CreditRepository
$datatableService DatatableService

Public Methods

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

Protected Methods

Method Description
getRepo ( ) : CreditRepository

Method Details

__construct() public method

CreditService constructor.
public __construct ( CreditRepository $creditRepo, DatatableService $datatableService )
$creditRepo App\Ninja\Repositories\CreditRepository
$datatableService DatatableService

getDatatable() public method

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

getRepo() protected method

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

save() public method

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

Property Details

$creditRepo protected property

protected CreditRepository,App\Ninja\Repositories $creditRepo
return App\Ninja\Repositories\CreditRepository

$datatableService protected property

protected DatatableService,App\services $datatableService
return DatatableService