Passed
Pull Request — 1.11.x (#4151)
by Angel Fernando Quiroz
09:24
created

Signature   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
eloc 15
c 1
b 0
f 0
dl 0
loc 69
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setRegisteredAt() 0 5 1
A getFile() 0 3 1
A getRegistrant() 0 3 1
A getRegisteredAt() 0 3 1
A setRegistrant() 0 5 1
A setFile() 0 5 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\PluginBundle\Zoom;
6
7
use DateTime;
8
use Doctrine\ORM\Mapping as ORM;
9
10
/**
11
 * @ORM\Entity()
12
 * @ORM\Table(name="plugin_zoom_signature")
13
 */
14
class Signature
15
{
16
    /**
17
     * @var int
18
     *
19
     * @ORM\Column(type="integer")
20
     * @ORM\Id
21
     * @ORM\GeneratedValue(strategy="AUTO")
22
     */
23
    private $id;
24
    /**
25
     * @var Registrant
26
     *
27
     * @ORM\OneToOne(targetEntity="Chamilo\PluginBundle\Zoom\Registrant", inversedBy="signature")
28
     * @ORM\JoinColumn(name="registrant_id", referencedColumnName="id")
29
     */
30
    private $registrant;
31
    /**
32
     * @var string
33
     *
34
     * @ORM\Column(name="signature", type="text")
35
     */
36
    private $file;
37
    /**
38
     * @var DateTime
39
     *
40
     * @ORM\Column(name="registered_at", type="datetime")
41
     */
42
    private $registeredAt;
43
44
    public function getId(): int
45
    {
46
        return $this->id;
47
    }
48
49
    public function getRegistrant(): Registrant
50
    {
51
        return $this->registrant;
52
    }
53
54
    public function setRegistrant(Registrant $registrant): Signature
55
    {
56
        $this->registrant = $registrant;
57
58
        return $this;
59
    }
60
61
    public function getFile(): string
62
    {
63
        return $this->file;
64
    }
65
66
    public function setFile(string $file): Signature
67
    {
68
        $this->file = $file;
69
70
        return $this;
71
    }
72
73
    public function getRegisteredAt(): DateTime
74
    {
75
        return $this->registeredAt;
76
    }
77
78
    public function setRegisteredAt(DateTime $registeredAt): Signature
79
    {
80
        $this->registeredAt = $registeredAt;
81
82
        return $this;
83
    }
84
}
85