PHP Class App\services\ExpenseService

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

Protected Properties

Свойство Type Description
$datatableService DatatableService
$expenseRepo App\Ninja\Repositories\ExpenseRepository

Méthodes publiques

Méthode Description
__construct ( ExpenseRepository $expenseRepo, DatatableService $datatableService ) ExpenseService constructor.
getDatatable ( $search ) : Illuminate\Http\JsonResponse
getDatatableVendor ( $vendorPublicId ) : Illuminate\Http\JsonResponse
save ( $data, null $expense = null ) : mixed | null

Méthodes protégées

Méthode Description
getRepo ( ) : ExpenseRepository

Method Details

__construct() public méthode

ExpenseService constructor.
public __construct ( ExpenseRepository $expenseRepo, DatatableService $datatableService )
$expenseRepo App\Ninja\Repositories\ExpenseRepository
$datatableService DatatableService

getDatatable() public méthode

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

getDatatableVendor() public méthode

public getDatatableVendor ( $vendorPublicId ) : Illuminate\Http\JsonResponse
$vendorPublicId
Résultat Illuminate\Http\JsonResponse

getRepo() protected méthode

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

save() public méthode

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

Property Details

$datatableService protected_oe property

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

$expenseRepo protected_oe property

protected ExpenseRepository,App\Ninja\Repositories $expenseRepo
Résultat App\Ninja\Repositories\ExpenseRepository