/** * Removes a key from the key set * * @param Key $key the key to remove */ function remove($key) { for ($i = 0; $i < count($this->keys); $i++) { if ($this->keys[$i]->getSignature() == $key->getSignature()) { unset($this->keys[$i]); return; } } }