| Total Complexity | 4 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class PublicKeyCredentialParameters implements \JsonSerializable |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $type; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | private $alg; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * PublicKeyCredentialParameters constructor. |
||
| 30 | * |
||
| 31 | * @param string $type |
||
| 32 | * @param int $alg |
||
| 33 | */ |
||
| 34 | public function __construct(string $type, int $alg) |
||
| 35 | { |
||
| 36 | $this->type = $type; |
||
| 37 | $this->alg = $alg; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getType(): string |
||
| 44 | { |
||
| 45 | return $this->type; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getAlg(): int |
||
| 52 | { |
||
| 53 | return $this->alg; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | public function jsonSerialize(): array |
||
| 64 | ]; |
||
| 65 | } |
||
| 66 | } |
||
| 67 |