protected function createMenu($menu, $options = array())
	{
		$cls = __NAMESPACE__ . '\\Type\\' . ucfirst($menu);

		if (class_exists($cls))
		{
			return new $cls($options);
		}

		throw new \InvalidArgumentException("Menu [$menu] not supported.");
	}
protected function createMenu($menu, $options = array())
	{
		$cls = __NAMESPACE__ . '\\Type\\' . ucfirst($menu);

		if (class_exists($cls))
		{
			return new $cls($options);
		}

		throw new \InvalidArgumentException("Menu [$menu] not supported.");
	}
protected function createMenu ( $ menu , $ options = array ( ) ) { $ cls = __NAMESPACE__ . '\\Type\\' . ucfirst ( $ menu ) ; if ( class_exists ( $ cls ) ) { return new $ cls ( $ options ) ; } throw new \ InvalidArgumentException ( "Menu [$menu] not supported." ) ; }
Create a new menu instance.

@param   string  $menu
@return  mixed
@throws  \InvalidArgumentException
Create a new menu instance .