Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | abstract class Credential implements \JsonSerializable |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $id; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $type; |
||
27 | |||
28 | /** |
||
29 | * Credential constructor. |
||
30 | * |
||
31 | * @param string $id |
||
32 | * @param string $type |
||
33 | */ |
||
34 | public function __construct(string $id, string $type) |
||
35 | { |
||
36 | $this->id = $id; |
||
37 | $this->type = $type; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getId(): string |
||
44 | { |
||
45 | return $this->id; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getType(): string |
||
54 | } |
||
55 | } |
||
56 |