vendor/sonata-project/doctrine-extensions/src/Model/PageableManagerInterface.php line 21

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the Sonata Project package.
  5.  *
  6.  * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace Sonata\Doctrine\Model;
  12. use Sonata\DatagridBundle\Pager\PagerInterface;
  13. @trigger_error(
  14.     'The '.__NAMESPACE__.'\PageableManagerInterface class is deprecated since 1.3 in favor of '.
  15.     'Sonata\DatagridBundle\Pager\PageableInterface, and will be removed in 2.0.',
  16.     \E_USER_DEPRECATED
  17. );
  18. /**
  19.  * @author RaphaĆ«l Benitte <benitteraphael@gmail.com>
  20.  *
  21.  * @deprecated since 1.3, to be removed in 2.0. Use Sonata\DatagridBundle\Pager\PageableInterface instead.
  22.  */
  23. interface PageableManagerInterface
  24. {
  25.     /**
  26.      * @param array<string, mixed>  $criteria
  27.      * @param array<string, string> $sort
  28.      * @param int                   $page
  29.      * @param int                   $limit
  30.      *
  31.      * @return PagerInterface
  32.      */
  33.     public function getPager(array $criteria$page$limit 10, array $sort = []);
  34. }
  35. interface_exists(\Sonata\CoreBundle\Model\PageableManagerInterface::class);