コード例 #1
0
ファイル: MultiRouter.php プロジェクト: norbe/AutoUse
	/**
	 * 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);
	}
コード例 #2
0
ファイル: nette.min.php プロジェクト: rotten77/xcv
 function offsetSet($index, $route)
 {
     if (!$route instanceof Nette\Application\IRouter) {
         throw new Nette\InvalidArgumentException("Argument must be IRouter descendant.");
     }
     parent::offsetSet($index, $route);
 }