src/Options/Metric.php
public function getOption($value)
	{
		if(!in_array($value, $this->allowedValues, true))
		{
			throw new InvalidOptionValueException('Invalid $metricOption argument "' . $value . '", allowed values: '
			                                      . implode(', ', $this->allowedValues));
		}

		return '-metric ' . $value . ' ';
	}
public function getOption($value)
	{
		if(!in_array($value, $this->allowedValues, true))
		{
			throw new InvalidOptionValueException('Invalid $metricOption argument "' . $value . '", allowed values: '
			                                      . implode(', ', $this->allowedValues));
		}

		return '-metric ' . $value . ' ';
	}
Returns a prepared metric options string.

@param string $value

@return string
@throws InvalidOptionValueException