You are here

public function RouteCollection::count in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/RouteCollection.php \Symfony\Component\Routing\RouteCollection::count()

Gets the number of Routes in this collection.

Return value

int The number of routes

2 methods override RouteCollection::count()
ChainRouteCollection::count in vendor/symfony-cmf/routing/ChainRouteCollection.php
Gets the number of Routes in this collection.
LazyRouteCollection::count in vendor/symfony-cmf/routing/LazyRouteCollection.php
Gets the number of Routes in this collection.

File

vendor/symfony/routing/RouteCollection.php, line 64

Class

RouteCollection
A RouteCollection represents a set of Route instances.

Namespace

Symfony\Component\Routing

Code

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