public function without($key): self
    {
        if (!$this->has($key)) {
            return $this;
        }

        $clone = clone $this;
        unset($clone->keys[$key]);

        return $clone;
    }
public function without($key): self
    {
        if (!$this->has($key)) {
            return $this;
        }

        $clone = clone $this;
        unset($clone->keys[$key]);

        return $clone;
    }
public function without ( $ key ) : self { if ( ! $ this -> has ( $ key ) ) { return $ this ; } $ clone = clone $ this ; unset ( $ clone -> keys [ $ key ] ) ; return $ clone ; }
Remove key from the key set.
This method is immutable and will return a new object.

@param int|string $key Key to remove from the key set

@return JWKSet
Remove key from the key set . This method is immutable and will return a new object .