PHP 클래스 App\services\ClientService

상속: extends BaseService
파일 보기 프로젝트 열기: hillelcoren/invoice-ninja 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$clientRepo App\Ninja\Repositories\ClientRepository
$datatableService DatatableService

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
getRepo ( ) : ClientRepository

메소드 상세

__construct() 공개 메소드

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 getDatatable ( $search, $userId ) : Illuminate\Http\JsonResponse
$search
$userId
리턴 Illuminate\Http\JsonResponse

getRepo() 보호된 메소드

protected getRepo ( ) : ClientRepository
리턴 App\Ninja\Repositories\ClientRepository

save() 공개 메소드

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

프로퍼티 상세

$clientRepo 보호되어 있는 프로퍼티

protected ClientRepository,App\Ninja\Repositories $clientRepo
리턴 App\Ninja\Repositories\ClientRepository

$datatableService 보호되어 있는 프로퍼티

protected DatatableService,App\services $datatableService
리턴 DatatableService