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

Platform   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 21
c 0
b 0
f 0
dl 0
loc 50
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getKid() 0 3 1
A setId() 0 5 1
A setPrivateKey() 0 5 1
A setKid() 0 3 1
A getId() 0 3 1
A getPrivateKey() 0 3 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\PluginBundle\ImsLti\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
#[ORM\Table(name: 'plugin_ims_lti_platform')]
9
#[ORM\Entity]
10
class Platform
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
39
    {
40
        return $this->kid;
41
    }
42
43
    public function setKid(string $kid): void
44
    {
45
        $this->kid = $kid;
46
    }
47
48
    public function getPrivateKey(): string
49
    {
50
        return $this->privateKey;
51
    }
52
53
    public function setPrivateKey(string $privateKey): static
54
    {
55
        $this->privateKey = $privateKey;
56
57
        return $this;
58
    }
59
}
60