Passed
Push — master ( fc8817...f91339 )
by Angel Fernando Quiroz
10:10 queued 10s
created

PlatformKey::getKid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\PluginBundle\LtiProvider\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
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;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->id could return the type null which is incompatible with the type-hinted return integer. Consider adding an additional type-check to rule them out.
Loading history...
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
39
    {
40
        return $this->kid;
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
68
    {
69
        $this->publicKey = $publicKey;
70
71
        return $this;
72
    }
73
}
74