c71989a3a1532cb9b4e8b711464970e7bb5bfd8f
[yaffs-website] / vendor / symfony / routing / Matcher / Dumper / DumperRoute.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Routing\Matcher\Dumper;
13
14 use Symfony\Component\Routing\Route;
15
16 /**
17  * Container for a Route.
18  *
19  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
20  *
21  * @internal
22  */
23 class DumperRoute
24 {
25     private $name;
26     private $route;
27
28     /**
29      * @param string $name  The route name
30      * @param Route  $route The route
31      */
32     public function __construct($name, Route $route)
33     {
34         $this->name = $name;
35         $this->route = $route;
36     }
37
38     /**
39      * Returns the route name.
40      *
41      * @return string The route name
42      */
43     public function getName()
44     {
45         return $this->name;
46     }
47
48     /**
49      * Returns the route.
50      *
51      * @return Route The route
52      */
53     public function getRoute()
54     {
55         return $this->route;
56     }
57 }