Пример #1
0
 /**
  * @param JWAInterface $algorithm
  *
  * @return self
  */
 public function addAlgorithm(JWAInterface $algorithm)
 {
     if (!$this->isAlgorithmSupported($algorithm->getAlgorithmName())) {
         $this->algorithms[$algorithm->getAlgorithmName()] = $algorithm;
     }
     return $this;
 }