public static function isValidValue($value, $strict = true) : bool
    {
        $values = array_values(self::getConstants());
        return in_array($value, $values, $strict);
    }
public static function isValidValue($value, $strict = true) : bool
    {
        $values = array_values(self::getConstants());
        return in_array($value, $values, $strict);
    }
public static function isValidValue ( $ value , $ strict = true ) : bool { $ values = array_values ( self :: getConstants ( ) ) ; return in_array ( $ value , $ values , $ strict ) ; }
Checks if given value is valid for this enum class.

@param mixed $value A value to check
@param bool $strict If strict comparison should be used or not
@return boolean True of value is valid, false otherwise
Checks if given value is valid for this enum class .