@@ -126,17 +126,11 @@ public function __construct()
126
126
$ this ->tags = new ArrayCollection ();
127
127
}
128
128
129
- /**
130
- * @return int
131
- */
132
129
public function getId ()
133
130
{
134
131
return $ this ->id ;
135
132
}
136
133
137
- /**
138
- * @return string
139
- */
140
134
public function getTitle ()
141
135
{
142
136
return $ this ->title ;
@@ -150,9 +144,6 @@ public function setTitle($title)
150
144
$ this ->title = $ title ;
151
145
}
152
146
153
- /**
154
- * @return string
155
- */
156
147
public function getSlug ()
157
148
{
158
149
return $ this ->slug ;
@@ -166,9 +157,6 @@ public function setSlug($slug)
166
157
$ this ->slug = $ slug ;
167
158
}
168
159
169
- /**
170
- * @return string
171
- */
172
160
public function getContent ()
173
161
{
174
162
return $ this ->content ;
@@ -182,17 +170,11 @@ public function setContent($content)
182
170
$ this ->content = $ content ;
183
171
}
184
172
185
- /**
186
- * @return \DateTime
187
- */
188
173
public function getPublishedAt ()
189
174
{
190
175
return $ this ->publishedAt ;
191
176
}
192
177
193
- /**
194
- * @param \DateTime $publishedAt
195
- */
196
178
public function setPublishedAt (\DateTime $ publishedAt )
197
179
{
198
180
$ this ->publishedAt = $ publishedAt ;
@@ -214,34 +196,22 @@ public function setAuthor(User $author)
214
196
$ this ->author = $ author ;
215
197
}
216
198
217
- /**
218
- * @return Comment[]|ArrayCollection
219
- */
220
199
public function getComments ()
221
200
{
222
201
return $ this ->comments ;
223
202
}
224
203
225
- /**
226
- * @param Comment $comment
227
- */
228
204
public function addComment (Comment $ comment )
229
205
{
230
206
$ this ->comments ->add ($ comment );
231
207
$ comment ->setPost ($ this );
232
208
}
233
209
234
- /**
235
- * @param Comment $comment
236
- */
237
210
public function removeComment (Comment $ comment )
238
211
{
239
212
$ this ->comments ->removeElement ($ comment );
240
213
}
241
214
242
- /**
243
- * @return string
244
- */
245
215
public function getSummary ()
246
216
{
247
217
return $ this ->summary ;
@@ -255,27 +225,18 @@ public function setSummary($summary)
255
225
$ this ->summary = $ summary ;
256
226
}
257
227
258
- /**
259
- * @param Tag $tag
260
- */
261
228
public function addTag (Tag $ tag )
262
229
{
263
230
if (!$ this ->tags ->contains ($ tag )) {
264
231
$ this ->tags ->add ($ tag );
265
232
}
266
233
}
267
234
268
- /**
269
- * @param Tag $tag
270
- */
271
235
public function removeTag (Tag $ tag )
272
236
{
273
237
$ this ->tags ->removeElement ($ tag );
274
238
}
275
239
276
- /**
277
- * @return Tag[]|ArrayCollection
278
- */
279
240
public function getTags ()
280
241
{
281
242
return $ this ->tags ;
0 commit comments