Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity |
||
17 | { |
||
18 | private $id; |
||
19 | |||
20 | private $displayName; |
||
21 | |||
22 | public function __construct(string $name, string $id, string $displayName, ?string $icon = null) |
||
23 | { |
||
24 | parent::__construct($name, $icon); |
||
25 | $this->id = $id; |
||
26 | $this->displayName = $displayName; |
||
27 | } |
||
28 | |||
29 | public function getId(): string |
||
30 | { |
||
31 | return $this->id; |
||
32 | } |
||
33 | |||
34 | public function getDisplayName(): string |
||
35 | { |
||
36 | return $this->displayName; |
||
37 | } |
||
38 | |||
39 | public function jsonSerialize(): array |
||
46 | } |
||
47 | } |
||
48 |