public static function validateFormatLength($formatLength)
    {
        if (!in_array($formatLength, [self::FORMAT_LENGTH_DEFAULT, self::FORMAT_LENGTH_FULL, self::FORMAT_LENGTH_LONG, self::FORMAT_LENGTH_MEDIUM, self::FORMAT_LENGTH_SHORT])) {
            throw new Exception\InvalidFormatLengthException('Provided formatLength, "' . $formatLength . '", is not one of allowed values.', 1281442591);
        }
    }
public static function validateFormatLength($formatLength)
    {
        if (!in_array($formatLength, [self::FORMAT_LENGTH_DEFAULT, self::FORMAT_LENGTH_FULL, self::FORMAT_LENGTH_LONG, self::FORMAT_LENGTH_MEDIUM, self::FORMAT_LENGTH_SHORT])) {
            throw new Exception\InvalidFormatLengthException('Provided formatLength, "' . $formatLength . '", is not one of allowed values.', 1281442591);
        }
    }
public static function validateFormatLength ( $ formatLength ) { if ( ! in_array ( $ formatLength , [ self :: FORMAT_LENGTH_DEFAULT , self :: FORMAT_LENGTH_FULL , self :: FORMAT_LENGTH_LONG , self :: FORMAT_LENGTH_MEDIUM , self :: FORMAT_LENGTH_SHORT ] ) ) { throw new Exception \ InvalidFormatLengthException ( 'Provided formatLength, "' . $ formatLength . '", is not one of allowed values.' , 1281442591 ) ; } }
Validates provided format length and throws exception if value is not
allowed.

@param string $formatLength
@return void
@throws Exception\InvalidFormatLengthException When value is not allowed
Validates provided format length and throws exception if value is not allowed .