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

PlatformKey   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 25
dl 0
loc 64
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getKid() 0 3 1
A getId() 0 3 1
A setId() 0 5 1
A setPublicKey() 0 5 1
A getPublicKey() 0 3 1
A getPrivateKey() 0 3 1
A setPrivateKey() 0 5 1
A setKid() 0 5 1
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