MabeEnum\Enum::has PHP Method

has() final public static method

Is the given enumerator part of this enumeration
final public static has ( static | null | boolean | integer | float | string $value ) : boolean
$value static | null | boolean | integer | float | string
return boolean
    public static final function has($value)
    {
        if ($value instanceof static && get_class($value) === get_called_class()) {
            return true;
        }
        $class = get_called_class();
        $constants = self::detectConstants($class);
        return in_array($value, $constants, true);
    }