|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
-
- namespace Lc\SovBundle\Repository;
-
- use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
- use Lc\SovBundle\Doctrine\EntityInterface;
-
- interface RepositoryQueryInterface
- {
- public function create();
-
- public function call(callable $fn):self;
-
- public function count(): string;
-
- public function findOne(): ?EntityInterface;
-
- public function find(): array;
-
- public function limit(int $maxResults):self;
-
- public function paginate(int $page = 1, int $limit = 20);
-
- public function getRepository(): ServiceEntityRepository;
-
- public function orderBy(string $field, string $sort = 'ASC'):self;
-
- public function filterById(int $id):self;
-
- public function filterByDevAlias(string $devAlias):self;
-
- public function filterBySlug(string $slug):self;
-
- public function filterIsParent():self;
-
- public function filterIsChildren():self;
-
- public function filterByParent(EntityInterface $parent):self;
-
- public function filterIsOffline():self;
-
- public function filterIsOnline():self;
-
- public function filterIsDeleted():self;
-
- public function filterIsOnlineAndOffline():self;
- }
|