⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.200
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
rider.techlup.co.ke
/
admin
/
app
/
Service
/
View File Name :
BaseServiceInterface.php
<?php namespace App\Service; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Pagination\LengthAwarePaginator; interface BaseServiceInterface { public function getAll(array $relations = [], array $orderBy = [], int $limit = null, int $offset = null, bool $onlyTrashed = false, bool $withTrashed = false, array $withCountQuery = [], array $groupBy = []): Collection|LengthAwarePaginator; public function getBy(array $criteria = [], array $searchCriteria = [], array $whereInCriteria = [], array $whereBetweenCriteria = [], array $whereHasRelations = [], array $withAvgRelations = [], array $relations = [], array $orderBy = [], int $limit = null, int $offset = null, bool $onlyTrashed = false, bool $withTrashed = false, array $withCountQuery = [], array $appends = [], array $groupBy = []): Collection|LengthAwarePaginator; public function create(array $data): ?Model; public function update(string|int $id, array $data = []): ?Model; public function updatedBy(array $criteria = [], array $whereInCriteria = [], array $data = [], bool $withTrashed = false); public function findOne(string|int $id, array $withAvgRelations = [], array $relations = [],array $whereHasRelations = [], array $withCountQuery = [], bool $withTrashed = false, bool $onlyTrashed = false): ?Model; public function findOneBy(array $criteria = [], array $whereInCriteria = [], array $withAvgRelations = [], array $relations = [],array $whereHasRelations = [], array $withCountQuery = [], array $orderBy = [], bool $withTrashed = false, bool $onlyTrashed = false): ?Model; public function delete(string|int $id): bool; public function deleteBy(array $criteria): bool; public function permanentDelete(string|int $id): bool; public function permanentDeleteBy(array $criteria): bool; public function restoreData(string|int $id): Mixed; //custom public function index(array $criteria = [], array $relations = [], array $whereHasRelations = [], array $orderBy = [], int $limit = null, int $offset = null, array $withCountQuery = [], array $appends = [], array $groupBy = []): Collection|LengthAwarePaginator; public function statusChange(string|int $id, array $data): ?Model; public function defaultStatusChange(string|int $id, array $data): ?Model; public function trashedData(array $criteria = [], array $relations = [], array $orderBy = [], int $limit = null, int $offset = null, array $withCountQuery = []): Collection|LengthAwarePaginator; }