4 * This file is part of the Symfony CMF package.
6 * (c) 2011-2015 Symfony CMF
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
13 * This file is part of the Symfony CMF package.
15 * (c) 2011-2014 Symfony CMF
17 * For the full copyright and license information, please view the LICENSE
18 * file that was distributed with this source code.
21 * This file is part of the Symfony CMF package.
23 * (c) 2011-2015 Symfony CMF
25 * For the full copyright and license information, please view the LICENSE
26 * file that was distributed with this source code.
29 namespace Symfony\Cmf\Component\Routing;
32 * Interface for a provider which allows to retrieve a limited amount of routes.
34 interface PagedRouteProviderInterface extends RouteProviderInterface
37 * Find an amount of routes with an offset and possible a limit.
39 * In case you want to iterate over all routes, you want to avoid to load
43 * The sequence will start with that offset in the list of all routes.
44 * @param int $length [optional]
45 * The sequence will have that many routes in it. If no length is
46 * specified all routes are returned.
48 * @return \Symfony\Component\Routing\Route[]
49 * Routes keyed by the route name.
51 public function getRoutesPaged($offset, $length = null);
54 * Determines the total amount of routes.
58 public function getRoutesCount();