forked from fa/breadcrumb-the-shire
31 lines
679 B
PHP
31 lines
679 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace MintyPHP\Repository\Access;
|
||
|
|
|
||
|
|
interface RoleRepositoryInterface
|
||
|
|
{
|
||
|
|
public function list(): array;
|
||
|
|
|
||
|
|
public function listActive(): array;
|
||
|
|
|
||
|
|
public function listByIds(array $roleIds): array;
|
||
|
|
|
||
|
|
public function listIds(): array;
|
||
|
|
|
||
|
|
public function listActiveIds(): array;
|
||
|
|
|
||
|
|
public function listPaged(array $options): array;
|
||
|
|
|
||
|
|
public function find(int $id): ?array;
|
||
|
|
|
||
|
|
public function findByUuid(string $uuid): ?array;
|
||
|
|
|
||
|
|
public function existsByCode(string $code, int $excludeId = 0): bool;
|
||
|
|
|
||
|
|
public function create(array $data): mixed;
|
||
|
|
|
||
|
|
public function update(int $id, array $data): bool;
|
||
|
|
|
||
|
|
public function delete(int $id): bool;
|
||
|
|
}
|