|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
-
- namespace Lc\SovBundle\Repository\Newsletter;
-
- use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
- use Doctrine\ORM\QueryBuilder;
- use Lc\SovBundle\Doctrine\EntityInterface;
- use Lc\SovBundle\Repository\AbstractRepositoryQuery;
-
- interface NewsletterRepositoryQueryInterface
- {
- public function create();
-
- public function call(callable $fn);
-
- public function count();
-
- public function findOne();
-
- public function find(): array;
-
- public function limit(int $maxResults);
-
- public function paginate(int $page = 1, int $limit = 20);
-
- public function getRepository(): ServiceEntityRepository;
-
- public function getQueryBuilder(): QueryBuilder;
-
- public function groupBy(string $field);
-
- public function orderBy(string $field, string $sort = 'ASC');
-
- public function filterById(int $id);
-
- public function andWhereEqual($field, $value);
-
- public function filterByOldUrl(string $oldUrl);
-
- public function resetRelationsJoin(): void;
-
- public function filterByDevAlias(string $devAlias);
-
- public function filterBySlug(string $slug);
-
- public function filterIsParent();
-
- public function filterIsChildren();
-
- public function filterByParent(EntityInterface $parent = null);
-
- public function filterIsOffline();
-
- public function filterIsOnline();
-
- public function filterIsDeleted();
-
- public function filterIsOnlineAndOffline();
- }
|