public function is($enumValue): bool
    {
        if (!static::hasValue($enumValue)) {
            throw new InvalidEnumMemberException($enumValue, $this);
        }

        return $this->value === $enumValue;
    }
public function is($enumValue): bool
    {
        if (!static::hasValue($enumValue)) {
            throw new InvalidEnumMemberException($enumValue, $this);
        }

        return $this->value === $enumValue;
    }
public function is ( $ enumValue ) : bool { if ( ! static :: hasValue ( $ enumValue ) ) { throw new InvalidEnumMemberException ( $ enumValue , $ this ) ; } return $ this -> value === $ enumValue ; }
Checks the equality of the value against the enum instance.

@param mixed $enumValue
@return bool
Checks the equality of the value against the enum instance .