PHP Class App\services\ClientService

Inheritance: extends BaseService
Mostrar archivo Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$clientRepo App\Ninja\Repositories\ClientRepository
$datatableService DatatableService

Public Methods

Method Description
__construct ( ClientRepository $clientRepo, DatatableService $datatableService, App\Ninja\Repositories\NinjaRepository $ninjaRepo ) ClientService constructor.
getDatatable ( $search, $userId ) : Illuminate\Http\JsonResponse
save ( $data, null $client = null ) : mixed | null

Protected Methods

Method Description
getRepo ( ) : ClientRepository

Method Details

__construct() public method

ClientService constructor.
public __construct ( ClientRepository $clientRepo, DatatableService $datatableService, App\Ninja\Repositories\NinjaRepository $ninjaRepo )
$clientRepo App\Ninja\Repositories\ClientRepository
$datatableService DatatableService
$ninjaRepo App\Ninja\Repositories\NinjaRepository

getDatatable() public method

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

getRepo() protected method

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

save() public method

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

Property Details

$clientRepo protected_oe property

protected ClientRepository,App\Ninja\Repositories $clientRepo
return App\Ninja\Repositories\ClientRepository

$datatableService protected_oe property

protected DatatableService,App\services $datatableService
return DatatableService