Exemple #1
0
 /**
  * {@inheritDoc}
  */
 public function getRoute($routeId)
 {
     $query = $this->prepareRouteQuery($routeId);
     $parser = $this->getProvider()->getRouteParser($query);
     $route = new Route($parser->getRouteId(), $parser->getRouteName());
     foreach ($parser->getStations() as $station) {
         $route->addStation($station);
     }
     return $route;
 }
Exemple #2
0
 /**
  * @dataProvider getIdProvider
  */
 public function testGetId($id)
 {
     $route = new Route($id, "San Sebastián");
     $this->assertEquals($id, $route->getId());
 }