Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

RepositoryQueryInterface.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace Lc\SovBundle\Repository;
  3. use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
  4. use Lc\SovBundle\Doctrine\EntityInterface;
  5. interface RepositoryQueryInterface
  6. {
  7. public function create();
  8. public function call(callable $fn):self;
  9. public function count();
  10. public function findOne();
  11. public function find(): array;
  12. public function limit(int $maxResults):self;
  13. public function paginate(int $page = 1, int $limit = 20);
  14. public function getRepository(): ServiceEntityRepository;
  15. public function orderBy(string $field, string $sort = 'ASC'):self;
  16. public function filterById(int $id):self;
  17. public function filterByDevAlias(string $devAlias):self;
  18. public function filterBySlug(string $slug):self;
  19. public function filterIsParent():self;
  20. public function filterIsChildren():self;
  21. public function filterByParent(EntityInterface $parent):self;
  22. public function filterIsOffline():self;
  23. public function filterIsOnline():self;
  24. public function filterIsDeleted():self;
  25. public function filterIsOnlineAndOffline():self;
  26. }