/** * @return bool */ function valid() { return is_array($this->container) ? null !== $this->key() : $this->container->valid(); }
/** * @param Route $route * @return void */ protected function setRoute(Route $route) { $this->config->set(Dispatch::ROUTE, $route); }