/** * @param string $id * @param JwsAlgorithm $algorithm * * @return JwsAlgorithmCollection */ public function add($id, JwsAlgorithm $algorithm) { $this->bag->set($id, $algorithm); return $this; }
/** * @param string $id * @param JweEncryption $algorithm * * @return JweEncryptionCollection */ public function add($id, JweEncryption $algorithm) { $this->bag->set($id, $algorithm); return $this; }