Total Complexity | 8 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | #[ORM\Table(name: 'plugin_lti_provider_platform_key')] |
||
9 | #[ORM\Entity] |
||
10 | class PlatformKey |
||
11 | { |
||
12 | #[ORM\Column(name: 'public_key', type: 'text')] |
||
13 | public string $publicKey; |
||
14 | |||
15 | #[ORM\Column(name: 'id', type: 'integer')] |
||
16 | #[ORM\Id] |
||
17 | #[ORM\GeneratedValue] |
||
18 | protected ?int $id; |
||
19 | |||
20 | #[ORM\Column(name: 'kid', type: 'string')] |
||
21 | private string $kid; |
||
22 | |||
23 | #[ORM\Column(name: 'private_key', type: 'text')] |
||
24 | private string $privateKey; |
||
25 | |||
26 | public function getId(): int |
||
27 | { |
||
28 | return $this->id; |
||
|
|||
29 | } |
||
30 | |||
31 | public function setId(int $id): static |
||
32 | { |
||
33 | $this->id = $id; |
||
34 | |||
35 | return $this; |
||
36 | } |
||
37 | |||
38 | public function getKid(): string |
||
41 | } |
||
42 | |||
43 | public function setKid(string $kid): static |
||
44 | { |
||
45 | $this->kid = $kid; |
||
46 | |||
47 | return $this; |
||
48 | } |
||
49 | |||
50 | public function getPrivateKey(): string |
||
51 | { |
||
52 | return $this->privateKey; |
||
53 | } |
||
54 | |||
55 | public function setPrivateKey(string $privateKey): static |
||
56 | { |
||
57 | $this->privateKey = $privateKey; |
||
58 | |||
59 | return $this; |
||
60 | } |
||
61 | |||
62 | public function getPublicKey(): string |
||
63 | { |
||
64 | return $this->publicKey; |
||
65 | } |
||
66 | |||
67 | public function setPublicKey(string $publicKey): static |
||
72 | } |
||
73 | } |
||
74 |