Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Routing\Matcher\Dumper; Chris@0: Chris@0: use Symfony\Component\Routing\Route; Chris@0: Chris@0: /** Chris@0: * Container for a Route. Chris@0: * Chris@0: * @author Arnaud Le Blanc Chris@0: * Chris@0: * @internal Chris@0: */ Chris@0: class DumperRoute Chris@0: { Chris@0: private $name; Chris@0: private $route; Chris@0: Chris@0: /** Chris@0: * @param string $name The route name Chris@0: * @param Route $route The route Chris@0: */ Chris@0: public function __construct($name, Route $route) Chris@0: { Chris@0: $this->name = $name; Chris@0: $this->route = $route; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Returns the route name. Chris@0: * Chris@0: * @return string The route name Chris@0: */ Chris@0: public function getName() Chris@0: { Chris@0: return $this->name; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Returns the route. Chris@0: * Chris@0: * @return Route The route Chris@0: */ Chris@0: public function getRoute() Chris@0: { Chris@0: return $this->route; Chris@0: } Chris@0: }