original_string: public function getRouter()
      {
          if (!isset($this->router)) {
              $container = clone $this->getContainer();
              $container->delegate(new ReflectionContainer);
              $this->router = (new RouteCollection($container));
          }
  
          /** @var RouteCollection $router */
          $router = $this->validateContract($this->router, RouteCollection::class);
          return $router;
      }
code: public function getRouter()
      {
          if (!isset($this->router)) {
              $container = clone $this->getContainer();
              $container->delegate(new ReflectionContainer);
              $this->router = (new RouteCollection($container));
          }
  
          /** @var RouteCollection $router */
          $router = $this->validateContract($this->router, RouteCollection::class);
          return $router;
      }
code_tokens: public function getRouter ( ) { if ( ! isset ( $ this -> router ) ) { $ container = clone $ this -> getContainer ( ) ; $ container -> delegate ( new ReflectionContainer ) ; $ this -> router = ( new RouteCollection ( $ container ) ) ; } /** @var RouteCollection $router */ $ router = $ this -> validateContract ( $ this -> router , RouteCollection :: class ) ; return $ router ; }
docstring: Return the router.
  
  @return \League\Route\RouteCollection
docstring_tokens: Return the router .