| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class EncryptionAlgorithmParameter extends JWTParameter |
||
| 15 | { |
||
| 16 | use StringParameterValue; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Constructor. |
||
| 20 | * |
||
| 21 | * @param string $algo Algorithm name |
||
| 22 | */ |
||
| 23 | 44 | public function __construct(string $algo) |
|
| 24 | { |
||
| 25 | 44 | parent::__construct(self::PARAM_ENCRYPTION_ALGORITHM, $algo); |
|
| 26 | 44 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Initialize from EncryptionAlgorithmParameterValue. |
||
| 30 | * |
||
| 31 | * @param EncryptionAlgorithmParameterValue $value |
||
| 32 | * |
||
| 33 | * @return self |
||
| 34 | */ |
||
| 35 | 17 | public static function fromAlgorithm( |
|
| 39 | } |
||
| 40 | } |
||
| 41 |