Total Complexity | 5 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class PublicKeyCredentialEntity implements \JsonSerializable |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $name; |
||
22 | |||
23 | /** |
||
24 | * @var null|string |
||
25 | */ |
||
26 | private $icon; |
||
27 | |||
28 | /** |
||
29 | * PublicKeyCredentialEntity constructor. |
||
30 | * |
||
31 | * @param string $name |
||
32 | * @param null|string $icon |
||
33 | */ |
||
34 | public function __construct(string $name, ?string $icon) |
||
35 | { |
||
36 | $this->name = $name; |
||
37 | $this->icon = $icon; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getName(): string |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return null|string |
||
50 | */ |
||
51 | public function getIcon(): ?string |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function jsonSerialize() |
||
71 |