src/Helper/ValidationHelper.php
protected function validateIn(array $properties, array $values)
    {
        $valid = true;
        $supported = implode('", "', $values);
        foreach ($properties as $property) {
            $value = $this->getPropertyValue($property);
            if (!in_array($value, $values)) {
                $this->addError(
                    $property,
                    sprintf(
                        'Property "%s" must be one of the following: "%s".',
                        $property,
                        $supported
                    )
                );
                $valid = false;
            }
        }

        return $valid;
    }
protected function validateIn(array $properties, array $values)
    {
        $valid = true;
        $supported = implode('", "', $values);
        foreach ($properties as $property) {
            $value = $this->getPropertyValue($property);
            if (!in_array($value, $values)) {
                $this->addError(
                    $property,
                    sprintf(
                        'Property "%s" must be one of the following: "%s".',
                        $property,
                        $supported
                    )
                );
                $valid = false;
            }
        }

        return $valid;
    }
protected function validateIn ( array $ properties , array $ values ) { $ valid = true ; $ supported = implode ( '", "' , $ values ) ; foreach ( $ properties as $ property ) { $ value = $ this -> getPropertyValue ( $ property ) ; if ( ! in_array ( $ value , $ values ) ) { $ this -> addError ( $ property , sprintf ( 'Property "%s" must be one of the following: "%s".' , $ property , $ supported ) ) ; $ valid = false ; } } return $ valid ; }
Validates that all given properties are IN the list of supplied values.

@param array $properties the list of properties to validate.
@param array $values the list of valid values the properties must
@return bool true if all are valid, false otherwise.
@throws NostoException
Validates that all given properties are IN the list of supplied values .