class DumperRoute

Container for a Route.

@author Arnaud Le Blanc <arnaud.lb@gmail.com>

Hierarchy

  • class \Symfony\Component\Routing\Matcher\Dumper\DumperRoute

Expanded class hierarchy of DumperRoute

1 file declares its use of DumperRoute
DumperPrefixCollectionTest.php in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperPrefixCollectionTest.php

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/DumperRoute.php, line 21

Namespace

Symfony\Component\Routing\Matcher\Dumper
View source
class DumperRoute {

  /**
   * @var string
   */
  private $name;

  /**
   * @var Route
   */
  private $route;

  /**
   * Constructor.
   *
   * @param string $name  The route name
   * @param Route  $route The route
   */
  public function __construct($name, Route $route) {
    $this->name = $name;
    $this->route = $route;
  }

  /**
   * Returns the route name.
   *
   * @return string The route name
   */
  public function getName() {
    return $this->name;
  }

  /**
   * Returns the route.
   *
   * @return Route The route
   */
  public function getRoute() {
    return $this->route;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DumperRoute::$name private property
DumperRoute::$route private property
DumperRoute::getName public function Returns the route name.
DumperRoute::getRoute public function Returns the route.
DumperRoute::__construct public function Constructor.