| Total Complexity | 8 |
| Total Lines | 99 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class PlatformKey |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | * |
||
| 21 | * @ORM\Column(name="public_key", type="text") |
||
| 22 | */ |
||
| 23 | public $publicKey; |
||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | * |
||
| 27 | * @ORM\Column(name="id", type="integer") |
||
| 28 | * @ORM\Id() |
||
| 29 | * @ORM\GeneratedValue() |
||
| 30 | */ |
||
| 31 | protected $id; |
||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | * |
||
| 35 | * @ORM\Column(name="kid", type="string") |
||
| 36 | */ |
||
| 37 | private $kid; |
||
| 38 | /** |
||
| 39 | * @var string |
||
| 40 | * |
||
| 41 | * @ORM\Column(name="private_key", type="text") |
||
| 42 | */ |
||
| 43 | private $privateKey; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get id. |
||
| 47 | */ |
||
| 48 | public function getId(): int |
||
| 49 | { |
||
| 50 | return $this->id; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Set id. |
||
| 55 | */ |
||
| 56 | public function setId(int $id): PlatformKey |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Get key id. |
||
| 65 | */ |
||
| 66 | public function getKid(): string |
||
| 67 | { |
||
| 68 | return $this->kid; |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Set key id. |
||
| 73 | */ |
||
| 74 | public function setKid(string $kid): PlatformKey |
||
| 75 | { |
||
| 76 | $this->kid = $kid; |
||
| 77 | |||
| 78 | return $this; |
||
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Get privateKey. |
||
| 83 | */ |
||
| 84 | public function getPrivateKey(): string |
||
| 85 | { |
||
| 86 | return $this->privateKey; |
||
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Set privateKey. |
||
| 91 | */ |
||
| 92 | public function setPrivateKey(string $privateKey): PlatformKey |
||
| 93 | { |
||
| 94 | $this->privateKey = $privateKey; |
||
| 95 | |||
| 96 | return $this; |
||
| 97 | } |
||
| 98 | |||
| 99 | /** |
||
| 100 | * Get publicKey. |
||
| 101 | */ |
||
| 102 | public function getPublicKey(): string |
||
| 103 | { |
||
| 104 | return $this->publicKey; |
||
| 105 | } |
||
| 106 | |||
| 107 | /** |
||
| 108 | * Set publicKey. |
||
| 109 | */ |
||
| 110 | public function setPublicKey(string $publicKey): PlatformKey |
||
| 115 | } |
||
| 116 | } |
||
| 117 |