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;
    }