Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

UserRepositoryQueryInterface.php 1.9KB

3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
3 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. namespace Lc\SovBundle\Repository\User;
  3. use App\Entity\Newsletter\Newsletter;
  4. use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
  5. use Doctrine\ORM\QueryBuilder;
  6. use Lc\SovBundle\Doctrine\EntityInterface;
  7. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  8. interface UserRepositoryQueryInterface
  9. {
  10. public function create();
  11. public function call(callable $fn);
  12. public function count();
  13. public function findOne();
  14. public function find(): array;
  15. public function limit(int $maxResults);
  16. public function paginate(int $page = 1, int $limit = 20);
  17. public function getRepository(): ServiceEntityRepository;
  18. public function getQueryBuilder(): QueryBuilder;
  19. public function groupBy(string $field);
  20. public function orderBy(string $field, string $sort = 'ASC');
  21. public function filterById(int $id);
  22. public function andWhereEqual($field, $value);
  23. public function filterByOldUrl(string $oldUrl);
  24. public function resetRelationsJoin(): void;
  25. public function filterByDevAlias(string $devAlias);
  26. public function filterBySlug(string $slug);
  27. public function filterIsParent();
  28. public function filterIsChildren();
  29. public function filterByParent(EntityInterface $parent = null);
  30. public function filterIsOffline();
  31. public function filterIsOnline();
  32. public function filterIsDeleted();
  33. public function filterIsOnlineAndOffline();
  34. public function joinGroupUsers($addSelect = true): UserRepositoryQueryInterface;
  35. public function filterByNewsletter(Newsletter $newsletter): UserRepositoryQueryInterface;
  36. public function filterByRole(string $role): UserRepositoryQueryInterface;
  37. public function filterByTicketTypeNotification(string $ticketType): UserRepositoryQueryInterface;
  38. public function filterByEmail(string $email): UserRepositoryQueryInterface;
  39. }