| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var null|string |
||
| 20 | */ |
||
| 21 | private $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * PublicKeyCredentialRpEntity constructor. |
||
| 25 | * @param string $name |
||
| 26 | * @param null|string $icon |
||
| 27 | * @param null|string $id |
||
| 28 | */ |
||
| 29 | public function __construct(string $name, ?string $icon, ?string $id) |
||
| 30 | { |
||
| 31 | parent::__construct($name, $icon); |
||
| 32 | $this->id = $id; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getId(): string |
||
| 39 | { |
||
| 40 | return $this->id; |
||
|
|
|||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function jsonSerialize(): array |
||
| 54 | } |
||
| 55 | } |
||
| 56 |