-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSelectRepository.php
More file actions
26 lines (15 loc) · 953 Bytes
/
SelectRepository.php
File metadata and controls
26 lines (15 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
declare(strict_types=1);
namespace A50\Database\Repository;
interface SelectRepository
{
public function findAll(?array $select = null, ?array $orderBy = null): ?array;
public function findBy(array $criteria, ?array $select = null, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): ?array;
public function findOneBy(array $criteria, ?array $select = null): ?array;
public function findOneById(string $id, ?array $select = null): ?array;
public function count(?array $criteria = null): int;
public function getBy(array $criteria, ?array $select = null, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array;
public function getOneBy(array $criteria, ?array $select = null, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array;
public function getOneById(string $id, ?array $select = null): array;
public function existsBy(array $criteria): bool;
}