You are here

public function PagedRouteCollection::count in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/PagedRouteCollection.php \Symfony\Cmf\Component\Routing\PagedRouteCollection::count()

Gets the number of Routes in this collection.

Return value

int The number of routes

File

vendor/symfony-cmf/routing/PagedRouteCollection.php, line 122

Class

PagedRouteCollection
Provides a route collection which avoids having all routes in memory.

Namespace

Symfony\Cmf\Component\Routing

Code

public function count() {
  return $this->provider
    ->getRoutesCount();
}