Passed
Push — 1.11.x ( 080d0e...e78a37 )
by Angel Fernando Quiroz
10:16
created

PlatformKey   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 99
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 17
c 2
b 0
f 0
dl 0
loc 99
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 5 1
A setPublicKey() 0 5 1
A getPublicKey() 0 3 1
A getPrivateKey() 0 3 1
A getKid() 0 3 1
A setPrivateKey() 0 5 1
A setKid() 0 5 1
A getId() 0 3 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\PluginBundle\Entity\LtiProvider;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * Class PlatformKey.
10
 *
11
 * @package Chamilo\PluginBundle\Entity\LtiProvider
12
 *
13
 * @ORM\Table(name="plugin_lti_provider_platform_key")
14
 * @ORM\Entity()
15
 */
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
57
    {
58
        $this->id = $id;
59
60
        return $this;
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
111
    {
112
        $this->publicKey = $publicKey;
113
114
        return $this;
115
    }
116
}
117