PHP Class App\services\VendorService

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

Protected Properties

Property Type Description
$datatableService DatatableService
$vendorRepo App\Ninja\Repositories\VendorRepository

Public Methods

Method Description
__construct ( VendorRepository $vendorRepo, DatatableService $datatableService, App\Ninja\Repositories\NinjaRepository $ninjaRepo ) VendorService constructor.
getDatatable ( $search ) : Illuminate\Http\JsonResponse
save ( array $data, Vendor $vendor = null ) : mixed | null

Protected Methods

Method Description
getRepo ( ) : VendorRepository

Method Details

__construct() public method

VendorService constructor.
public __construct ( VendorRepository $vendorRepo, DatatableService $datatableService, App\Ninja\Repositories\NinjaRepository $ninjaRepo )
$vendorRepo App\Ninja\Repositories\VendorRepository
$datatableService DatatableService
$ninjaRepo App\Ninja\Repositories\NinjaRepository

getDatatable() public method

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

getRepo() protected method

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

save() public method

public save ( array $data, Vendor $vendor = null ) : mixed | null
$data array
$vendor app\models\Vendor
return mixed | null

Property Details

$datatableService protected property

protected DatatableService,App\services $datatableService
return DatatableService

$vendorRepo protected property

protected VendorRepository,App\Ninja\Repositories $vendorRepo
return App\Ninja\Repositories\VendorRepository