<?php

namespace webignition\CssValidatorWrapper\Configuration;

class VendorExtensionSeverityLevel {
    
    const LEVEL_ERROR = 'error';
    const LEVEL_WARN = 'warn';    
    
    
    /**
     *
     * @var array
     */
    private static $validValues = array(
        self::LEVEL_ERROR,
        self::LEVEL_WARN
    );
    
    
    /**
     * 
     * @param string $severityLevel
     * @return boolean
     */
    public static function isValid($severityLevel) {
        return in_array($severityLevel, self::$validValues);
    }
    
    /**
     * 
     * @return array
     */
    public static function getValidValues() {
        return self::$validValues;
    }
}
<?php

namespace webignition\CssValidatorWrapper\Configuration;

class VendorExtensionSeverityLevel {
    
    const LEVEL_IGNORE = 'ignore';
    const LEVEL_ERROR = 'error';
    const LEVEL_WARN = 'warn';    
    
    
    /**
     *
     * @var array
     */
    private static $validValues = array(        
        self::LEVEL_ERROR,
        self::LEVEL_WARN,
        self::LEVEL_IGNORE
    );
    
    
    /**
     * 
     * @param string $severityLevel
     * @return boolean
     */
    public static function isValid($severityLevel) {
        return in_array($severityLevel, self::$validValues);
    }
    
    /**
     * 
     * @return array
     */
    public static function getValidValues() {
        return self::$validValues;
    }
}
Allow 'ignore' as valid vendor extension severity level
Allow 'ignore' as valid vendor extension severity level
