1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* For licensing terms, see /license.txt */ |
4
|
|
|
|
5
|
|
|
namespace Chamilo\PluginBundle\Zoom; |
6
|
|
|
|
7
|
|
|
use Chamilo\UserBundle\Entity\User; |
8
|
|
|
use DateTime; |
9
|
|
|
use Doctrine\ORM\Mapping as ORM; |
10
|
|
|
|
11
|
|
|
/** |
12
|
|
|
* @ORM\Entity() |
13
|
|
|
* @ORM\Table(name="plugin_zoom_signature") |
14
|
|
|
*/ |
15
|
|
|
class Signature |
16
|
|
|
{ |
17
|
|
|
/** |
18
|
|
|
* @var int |
19
|
|
|
* |
20
|
|
|
* @ORM\Column(type="integer") |
21
|
|
|
* @ORM\Id |
22
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
23
|
|
|
*/ |
24
|
|
|
private $id; |
25
|
|
|
/** |
26
|
|
|
* @var User |
27
|
|
|
* |
28
|
|
|
* @ORM\ManyToOne(targetEntity="Chamilo\UserBundle\Entity\User") |
29
|
|
|
* @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false) |
30
|
|
|
*/ |
31
|
|
|
private $user; |
32
|
|
|
/** |
33
|
|
|
* @var Meeting |
34
|
|
|
* |
35
|
|
|
* @ORM\ManyToOne(targetEntity="Chamilo\PluginBundle\Zoom\Meeting", inversedBy="signatures") |
36
|
|
|
* @ORM\JoinColumn(name="meeting_id", referencedColumnName="id", nullable=false) |
37
|
|
|
*/ |
38
|
|
|
private $meeting; |
39
|
|
|
/** |
40
|
|
|
* @var string |
41
|
|
|
* |
42
|
|
|
* @ORM\Column(name="signature", type="text") |
43
|
|
|
*/ |
44
|
|
|
private $file; |
45
|
|
|
/** |
46
|
|
|
* @var DateTime |
47
|
|
|
* |
48
|
|
|
* @ORM\Column(name="registered_at", type="datetime") |
49
|
|
|
*/ |
50
|
|
|
private $registeredAt; |
51
|
|
|
|
52
|
|
|
public function getId(): int |
53
|
|
|
{ |
54
|
|
|
return $this->id; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
public function getUser(): User |
58
|
|
|
{ |
59
|
|
|
return $this->user; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
public function setUser(User $user): Signature |
63
|
|
|
{ |
64
|
|
|
$this->user = $user; |
65
|
|
|
|
66
|
|
|
return $this; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
public function getMeeting(): Meeting |
70
|
|
|
{ |
71
|
|
|
return $this->meeting; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
public function setMeeting(Meeting $meeting): Signature |
75
|
|
|
{ |
76
|
|
|
$this->meeting = $meeting; |
77
|
|
|
|
78
|
|
|
return $this; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
public function getFile(): string |
82
|
|
|
{ |
83
|
|
|
return $this->file; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
public function setFile(string $file): Signature |
87
|
|
|
{ |
88
|
|
|
$this->file = $file; |
89
|
|
|
|
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
public function getRegisteredAt(): DateTime |
94
|
|
|
{ |
95
|
|
|
return $this->registeredAt; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function setRegisteredAt(DateTime $registeredAt): Signature |
99
|
|
|
{ |
100
|
|
|
$this->registeredAt = $registeredAt; |
101
|
|
|
|
102
|
|
|
return $this; |
103
|
|
|
} |
104
|
|
|
} |
105
|
|
|
|