12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Shop\Employees\Repositories\Interfaces;
- use Jsdecena\Baserepo\BaseRepositoryInterface;
- use App\Shop\Employees\Employee;
- use Illuminate\Support\Collection;
- interface EmployeeRepositoryInterface extends BaseRepositoryInterface
- {
- public function listEmployees(string $order = 'id', string $sort = 'desc'): Collection;
- public function createEmployee(array $params) : Employee;
- public function findEmployeeById(int $id) : Employee;
- public function updateEmployee(array $params): bool;
- public function syncRoles(array $roleIds);
- public function listRoles() : Collection;
- public function hasRole(string $roleName) : bool;
- public function isAuthUser(Employee $employee): bool;
- public function deleteEmployee() : bool;
- }
|