public function getOption($value)
	{
		if(is_array($value))
		{
			return $this->_getOptionFromArray($value);
		}
		elseif(preg_match($this->shortHandRegex, strtoupper($value)))
		{
			return '-channel ' . $value . ' ';
		}
		else
		{
			$msg = 'Invalid argument $value "' . $value . '", allowed values are ' . implode(', ',
			                                                                                 $this->allowedOptions)
			       . ' as array (e.g.: ["Green", "Blue"]) or some of the characters R G B A O C M Y K without whitespaces and unique';

			return $this->_optionValueException($msg);
		}
	}
public function getOption($value)
	{
		if(is_array($value))
		{
			return $this->_getOptionFromArray($value);
		}
		elseif(preg_match($this->shortHandRegex, strtoupper($value)))
		{
			return '-channel ' . $value . ' ';
		}
		else
		{
			$msg = 'Invalid argument $value "' . $value . '", allowed values are ' . implode(', ',
			                                                                                 $this->allowedOptions)
			       . ' as array (e.g.: ["Green", "Blue"]) or some of the characters R G B A O C M Y K without whitespaces and unique';

			return $this->_optionValueException($msg);
		}
	}
public function getOption ( $ value ) { if ( is_array ( $ value ) ) { return $ this -> _getOptionFromArray ( $ value ) ; } elseif ( preg_match ( $ this -> shortHandRegex , strtoupper ( $ value ) ) ) { return '-channel ' . $ value . ' ' ; } else { $ msg = 'Invalid argument $value "' . $ value . '", allowed values are ' . implode ( ', ' , $ this -> allowedOptions ) . ' as array (e.g.: ["Green", "Blue"]) or some of the characters R G B A O C M Y K without whitespaces and unique' ; return $ this -> _optionValueException ( $ msg ) ; } }
Returns a prepared option string.

@param array|string $value Option values.

@throws InvalidOptionValueException If the $values argument is invalid.
@return string Prepared option string.
Returns a prepared option string .