private function _validateValuesArrayArgument(array $values)
	{
		foreach($values as $value)
		{
			if(!in_array($value, $this->allowedOptions))
			{
				$msg = 'Invalid element in $value array: "' . $value . '", allowed values: ' . implode(', ',
				                                                                                       $this->allowedOptions);

				$this->_optionValueException($msg);
			}
		}
	}
private function _validateValuesArrayArgument(array $values)
	{
		foreach($values as $value)
		{
			if(!in_array($value, $this->allowedOptions))
			{
				$msg = 'Invalid element in $value array: "' . $value . '", allowed values: ' . implode(', ',
				                                                                                       $this->allowedOptions);

				$this->_optionValueException($msg);
			}
		}
	}
private function _validateValuesArrayArgument ( array $ values ) { foreach ( $ values as $ value ) { if ( ! in_array ( $ value , $ this -> allowedOptions ) ) { $ msg = 'Invalid element in $value array: "' . $ value . '", allowed values: ' . implode ( ', ' , $ this -> allowedOptions ) ; $ this -> _optionValueException ( $ msg ) ; } } }
Validates the values array and throw an exception if it contains invalid elements.

@param array $values Array to be validated.

@throws InvalidOptionValueException When the values array contains invalid elements.
Validates the values array and throw an exception if it contains invalid elements .