|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AudioCoreEntity\Entity; |
|
4
|
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* DeletedRelease |
|
9
|
|
|
* |
|
10
|
|
|
* @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="raw_name_idx", columns={"rawName"})}) |
|
11
|
|
|
* @ORM\Entity |
|
12
|
|
|
*/ |
|
13
|
|
|
class DeletedRelease |
|
14
|
|
|
{ |
|
15
|
|
|
/** |
|
16
|
|
|
* @var integer |
|
17
|
|
|
* |
|
18
|
|
|
* @ORM\Column(name="id", type="integer") |
|
19
|
|
|
* @ORM\Id |
|
20
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
|
21
|
|
|
*/ |
|
22
|
|
|
private $id; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @var string |
|
26
|
|
|
* |
|
27
|
|
|
* @ORM\Column(name="rawName", type="string", length=255) |
|
28
|
|
|
*/ |
|
29
|
|
|
private $rawName; |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* @var string |
|
33
|
|
|
* |
|
34
|
|
|
* @ORM\Column(name="genre", type="text", nullable=true) |
|
35
|
|
|
*/ |
|
36
|
|
|
private $genre; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @var string |
|
40
|
|
|
* |
|
41
|
|
|
* @ORM\Column(name="albumName", type="string", length=255, nullable=true) |
|
42
|
|
|
*/ |
|
43
|
|
|
private $albumName; |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* @var string |
|
47
|
|
|
* |
|
48
|
|
|
* @ORM\Column(name="artistName", type="text", nullable=true) |
|
49
|
|
|
*/ |
|
50
|
|
|
private $artistName; |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* @var \DateTime |
|
54
|
|
|
* |
|
55
|
|
|
* @ORM\Column(name="deletedDate", type="datetime") |
|
56
|
|
|
*/ |
|
57
|
|
|
private $deletedDate; |
|
58
|
|
|
|
|
59
|
|
|
|
|
60
|
|
|
/** |
|
61
|
|
|
* Get id |
|
62
|
|
|
* |
|
63
|
|
|
* @return integer |
|
64
|
|
|
*/ |
|
65
|
1 |
|
public function getId() |
|
66
|
|
|
{ |
|
67
|
1 |
|
return $this->id; |
|
68
|
|
|
} |
|
69
|
|
|
|
|
70
|
|
|
/** |
|
71
|
|
|
* Set name |
|
72
|
|
|
* |
|
73
|
|
|
* @param string $rawName |
|
74
|
|
|
* @return DeletedRelease |
|
75
|
|
|
*/ |
|
76
|
1 |
|
public function setRawName($rawName) |
|
77
|
|
|
{ |
|
78
|
1 |
|
$this->rawName = $rawName; |
|
79
|
|
|
|
|
80
|
1 |
|
return $this; |
|
81
|
|
|
} |
|
82
|
|
|
|
|
83
|
|
|
/** |
|
84
|
|
|
* Get name |
|
85
|
|
|
* |
|
86
|
|
|
* @return string |
|
87
|
|
|
*/ |
|
88
|
1 |
|
public function getRawName() |
|
89
|
|
|
{ |
|
90
|
1 |
|
return $this->rawName; |
|
91
|
|
|
} |
|
92
|
|
|
|
|
93
|
|
|
/** |
|
94
|
|
|
* Set genre |
|
95
|
|
|
* |
|
96
|
|
|
* @param string $genre |
|
97
|
|
|
* @return DeletedRelease |
|
98
|
|
|
*/ |
|
99
|
1 |
|
public function setGenre($genre) |
|
100
|
|
|
{ |
|
101
|
1 |
|
$this->genre = $genre; |
|
102
|
|
|
|
|
103
|
1 |
|
return $this; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* Get genre |
|
108
|
|
|
* |
|
109
|
|
|
* @return string |
|
110
|
|
|
*/ |
|
111
|
1 |
|
public function getGenre() |
|
112
|
|
|
{ |
|
113
|
1 |
|
return $this->genre; |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* Set albumName |
|
118
|
|
|
* |
|
119
|
|
|
* @param string $albumName |
|
120
|
|
|
* @return DeletedRelease |
|
121
|
|
|
*/ |
|
122
|
1 |
|
public function setAlbumName($albumName) |
|
123
|
|
|
{ |
|
124
|
1 |
|
$this->albumName = $albumName; |
|
125
|
|
|
|
|
126
|
1 |
|
return $this; |
|
127
|
|
|
} |
|
128
|
|
|
|
|
129
|
|
|
/** |
|
130
|
|
|
* Get albumName |
|
131
|
|
|
* |
|
132
|
|
|
* @return string |
|
133
|
|
|
*/ |
|
134
|
1 |
|
public function getAlbumName() |
|
135
|
|
|
{ |
|
136
|
1 |
|
return $this->albumName; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* Set artistName |
|
141
|
|
|
* |
|
142
|
|
|
* @param string $artistName |
|
143
|
|
|
* @return DeletedRelease |
|
144
|
|
|
*/ |
|
145
|
1 |
|
public function setArtistName($artistName) |
|
146
|
|
|
{ |
|
147
|
1 |
|
$this->artistName = $artistName; |
|
148
|
|
|
|
|
149
|
1 |
|
return $this; |
|
150
|
|
|
} |
|
151
|
|
|
|
|
152
|
|
|
/** |
|
153
|
|
|
* Get artistName |
|
154
|
|
|
* |
|
155
|
|
|
* @return string |
|
156
|
|
|
*/ |
|
157
|
1 |
|
public function getArtistName() |
|
158
|
|
|
{ |
|
159
|
1 |
|
return $this->artistName; |
|
160
|
|
|
} |
|
161
|
|
|
|
|
162
|
|
|
/** |
|
163
|
|
|
* Set deletedDate |
|
164
|
|
|
* |
|
165
|
|
|
* @param \DateTime $deletedDate |
|
166
|
|
|
* @return DeletedRelease |
|
167
|
|
|
*/ |
|
168
|
1 |
|
public function setDeletedDate($deletedDate) |
|
169
|
|
|
{ |
|
170
|
1 |
|
$this->deletedDate = $deletedDate; |
|
171
|
|
|
|
|
172
|
1 |
|
return $this; |
|
173
|
|
|
} |
|
174
|
|
|
|
|
175
|
|
|
/** |
|
176
|
|
|
* Get deletedDate |
|
177
|
|
|
* |
|
178
|
|
|
* @return \DateTime |
|
179
|
|
|
*/ |
|
180
|
1 |
|
public function getDeletedDate() |
|
181
|
|
|
{ |
|
182
|
1 |
|
return $this->deletedDate; |
|
183
|
|
|
} |
|
184
|
|
|
} |
|
185
|
|
|
|