private function validateRoute($route) {
        if (!$route instanceof Route) {
            throw new \Exception('A type of Route or a derivative is expected.');
        }
        
        if ($route->ignore !== true && empty($route->name)) {
            throw new \Exception('The name of the route is expected. The value must not be empty.');
        }

        if ($route->ignore !== true && !$this->isUniqueRouteName($route->name)) {
            throw new \Exception('The name "' . $route->name . '" is already used for another route. Specify a unique name.');
        }

        if (empty($route->template)) {
            throw new \Exception('The route "' . $route->name . '" does not specify a template. Please specify a template.');
        }
    }
private function validateRoute($route) {
        if (!$route instanceof Route) {
            throw new \Exception('A type of Route or a derivative is expected.');
        }
        
        if ($route->ignore !== true && empty($route->name)) {
            throw new \Exception('The name of the route is expected. The value must not be empty.');
        }

        if ($route->ignore !== true && !$this->isUniqueRouteName($route->name)) {
            throw new \Exception('The name "' . $route->name . '" is already used for another route. Specify a unique name.');
        }

        if (empty($route->template)) {
            throw new \Exception('The route "' . $route->name . '" does not specify a template. Please specify a template.');
        }
    }
private function validateRoute ( $ route ) { if ( ! $ route instanceof Route ) { throw new \ Exception ( 'A type of Route or a derivative is expected.' ) ; } if ( $ route -> ignore !== true && empty ( $ route -> name ) ) { throw new \ Exception ( 'The name of the route is expected. The value must not be empty.' ) ; } if ( $ route -> ignore !== true && ! $ this -> isUniqueRouteName ( $ route -> name ) ) { throw new \ Exception ( 'The name "' . $ route -> name . '" is already used for another route. Specify a unique name.' ) ; } if ( empty ( $ route -> template ) ) { throw new \ Exception ( 'The route "' . $ route -> name . '" does not specify a template. Please specify a template.' ) ; } }
Verifies that the data in the route instance is correct.

@param Route $route The route to check.

@return void
Verifies that the data in the route instance is correct .