Nette\Routing\RouteList::offsetSet PHP Метод

offsetSet() публичный Метод

Adds the router.
public offsetSet ( $index, $route ) : void
Результат void
    public function offsetSet($index, $route)
    {
        if (!$route instanceof IRouter) {
            throw new Nette\InvalidArgumentException('Argument must be IRouter descendant.');
        }
        parent::offsetSet($index, $route);
    }