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