|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
/* For licensing terms, see /license.txt */ |
|
6
|
|
|
|
|
7
|
|
|
namespace Chamilo\CoreBundle\Entity; |
|
8
|
|
|
|
|
9
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
10
|
|
|
|
|
11
|
|
|
/** |
|
12
|
|
|
* Conference Recording entity. |
|
13
|
|
|
*/ |
|
14
|
|
|
#[ORM\Table(name: 'conference_recording')] |
|
15
|
|
|
#[ORM\Entity] |
|
16
|
|
|
class ConferenceRecording |
|
17
|
|
|
{ |
|
18
|
|
|
#[ORM\Id] |
|
19
|
|
|
#[ORM\GeneratedValue] |
|
20
|
|
|
#[ORM\Column(type: 'integer')] |
|
21
|
|
|
protected int $id; |
|
22
|
|
|
|
|
23
|
|
|
#[ORM\ManyToOne(targetEntity: ConferenceMeeting::class)] |
|
24
|
|
|
#[ORM\JoinColumn(name: 'meeting_id', referencedColumnName: 'id', onDelete: 'CASCADE')] |
|
25
|
|
|
protected ?ConferenceMeeting $meeting = null; |
|
26
|
|
|
|
|
27
|
|
|
#[ORM\Column(name: 'format_type', type: 'string', length: 50)] |
|
28
|
|
|
protected string $formatType = ''; |
|
29
|
|
|
|
|
30
|
|
|
#[ORM\Column(name: 'resource_url', type: 'string', length: 255)] |
|
31
|
|
|
protected string $resourceUrl = ''; |
|
32
|
|
|
|
|
33
|
|
|
public function __construct() |
|
34
|
|
|
{ |
|
35
|
|
|
$this->formatType = ''; |
|
36
|
|
|
$this->resourceUrl = ''; |
|
37
|
|
|
} |
|
38
|
|
|
|
|
39
|
|
|
public function getId(): int |
|
40
|
|
|
{ |
|
41
|
|
|
return $this->id; |
|
42
|
|
|
} |
|
43
|
|
|
|
|
44
|
|
|
public function getMeeting(): ?ConferenceMeeting |
|
45
|
|
|
{ |
|
46
|
|
|
return $this->meeting; |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
public function setMeeting(?ConferenceMeeting $meeting): self |
|
50
|
|
|
{ |
|
51
|
|
|
$this->meeting = $meeting; |
|
52
|
|
|
|
|
53
|
|
|
return $this; |
|
54
|
|
|
} |
|
55
|
|
|
|
|
56
|
|
|
public function getFormatType(): string |
|
57
|
|
|
{ |
|
58
|
|
|
return $this->formatType; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
public function setFormatType(string $formatType): self |
|
62
|
|
|
{ |
|
63
|
|
|
$this->formatType = $formatType; |
|
64
|
|
|
|
|
65
|
|
|
return $this; |
|
66
|
|
|
} |
|
67
|
|
|
|
|
68
|
|
|
public function getResourceUrl(): string |
|
69
|
|
|
{ |
|
70
|
|
|
return $this->resourceUrl; |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
public function setResourceUrl(string $resourceUrl): self |
|
74
|
|
|
{ |
|
75
|
|
|
$this->resourceUrl = $resourceUrl; |
|
76
|
|
|
|
|
77
|
|
|
return $this; |
|
78
|
|
|
} |
|
79
|
|
|
} |
|
80
|
|
|
|