PHP Class App\services\ClientService

Inheritance: extends BaseService
Afficher le fichier Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Свойство Type Description
$clientRepo App\Ninja\Repositories\ClientRepository
$datatableService DatatableService

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
getRepo ( ) : ClientRepository

Method Details

__construct() public méthode

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 méthode

public getDatatable ( $search, $userId ) : Illuminate\Http\JsonResponse
$search
$userId
Résultat Illuminate\Http\JsonResponse

getRepo() protected méthode

protected getRepo ( ) : ClientRepository
Résultat App\Ninja\Repositories\ClientRepository

save() public méthode

public save ( $data, null $client = null ) : mixed | null
$data
$client null
Résultat mixed | null

Property Details

$clientRepo protected_oe property

protected ClientRepository,App\Ninja\Repositories $clientRepo
Résultat App\Ninja\Repositories\ClientRepository

$datatableService protected_oe property

protected DatatableService,App\services $datatableService
Résultat DatatableService