protected function createType($type, $options = array())
	{
		$type = preg_replace('/[^A-Z0-9_\.-]/i', '', $type);

		$class = __NAMESPACE__ . '\\Type\\' . ucfirst($type);

		if (!class_exists($class))
		{
			throw new InvalidArgumentException("Type [$type] not supported.");
		}

		return new $class($options);
	}
protected function createType($type, $options = array())
	{
		$type = preg_replace('/[^A-Z0-9_\.-]/i', '', $type);

		$class = __NAMESPACE__ . '\\Type\\' . ucfirst($type);

		if (!class_exists($class))
		{
			throw new InvalidArgumentException("Type [$type] not supported.");
		}

		return new $class($options);
	}
protected function createType ( $ type , $ options = array ( ) ) { $ type = preg_replace ( '/[^A-Z0-9_\.-]/i' , '' , $ type ) ; $ class = __NAMESPACE__ . '\\Type\\' . ucfirst ( $ type ) ; if ( ! class_exists ( $ class ) ) { throw new InvalidArgumentException ( "Type [$type] not supported." ) ; } return new $ class ( $ options ) ; }
Create a new type instance.

@param   string  $type
@param   array   $options  Associative array of options
@return  object
@throws  InvalidArgumentException
Create a new type instance .