PHP Class App\services\ProductService

Inheritance: extends Stevenmaguire\Laravel\Services\EloquentCache, implements App\Contracts\Productable
Show file Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$datatableService DatatableService
$productRepo App\Ninja\Repositories\ProductRepository

Public Methods

Method Description
__construct ( DatatableService $datatableService, ProductRepository $productRepo ) ProductService constructor.
getDatatable ( $accountId, $search ) : Illuminate\Http\JsonResponse

Protected Methods

Method Description
getRepo ( ) : ProductRepository

Method Details

__construct() public method

ProductService constructor.
public __construct ( DatatableService $datatableService, ProductRepository $productRepo )
$datatableService DatatableService
$productRepo App\Ninja\Repositories\ProductRepository

getDatatable() public method

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

getRepo() protected method

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

Property Details

$datatableService protected property

protected DatatableService,App\services $datatableService
return DatatableService

$productRepo protected property

protected ProductRepository,App\Ninja\Repositories $productRepo
return App\Ninja\Repositories\ProductRepository