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 int $page
  27.      * @param int $limit
  28.      *
  29.      * @return PagerInterface
  30.      */
  31.     public function getPager(array $criteria$page$limit 10, array $sort = []);
  32. }
  33. interface_exists(\Sonata\CoreBundle\Model\PageableManagerInterface::class);