/** * Adds the router. * @param mixed * @param IRouter * @return void */ public function offsetSet($index, $route) { if (!($route instanceof IRouter)) { throw new \InvalidArgumentException("Argument must be IRouter descendant."); } parent::offsetSet($index, $route); }
function offsetSet($index, $route) { if (!$route instanceof Nette\Application\IRouter) { throw new Nette\InvalidArgumentException("Argument must be IRouter descendant."); } parent::offsetSet($index, $route); }