@@ -126,17 +126,11 @@ public function __construct()
126126 $ this ->tags = new ArrayCollection ();
127127 }
128128
129- /**
130- * @return int
131- */
132129 public function getId ()
133130 {
134131 return $ this ->id ;
135132 }
136133
137- /**
138- * @return string
139- */
140134 public function getTitle ()
141135 {
142136 return $ this ->title ;
@@ -150,9 +144,6 @@ public function setTitle($title)
150144 $ this ->title = $ title ;
151145 }
152146
153- /**
154- * @return string
155- */
156147 public function getSlug ()
157148 {
158149 return $ this ->slug ;
@@ -166,9 +157,6 @@ public function setSlug($slug)
166157 $ this ->slug = $ slug ;
167158 }
168159
169- /**
170- * @return string
171- */
172160 public function getContent ()
173161 {
174162 return $ this ->content ;
@@ -182,17 +170,11 @@ public function setContent($content)
182170 $ this ->content = $ content ;
183171 }
184172
185- /**
186- * @return \DateTime
187- */
188173 public function getPublishedAt ()
189174 {
190175 return $ this ->publishedAt ;
191176 }
192177
193- /**
194- * @param \DateTime $publishedAt
195- */
196178 public function setPublishedAt (\DateTime $ publishedAt )
197179 {
198180 $ this ->publishedAt = $ publishedAt ;
@@ -214,34 +196,22 @@ public function setAuthor(User $author)
214196 $ this ->author = $ author ;
215197 }
216198
217- /**
218- * @return Comment[]|ArrayCollection
219- */
220199 public function getComments ()
221200 {
222201 return $ this ->comments ;
223202 }
224203
225- /**
226- * @param Comment $comment
227- */
228204 public function addComment (Comment $ comment )
229205 {
230206 $ this ->comments ->add ($ comment );
231207 $ comment ->setPost ($ this );
232208 }
233209
234- /**
235- * @param Comment $comment
236- */
237210 public function removeComment (Comment $ comment )
238211 {
239212 $ this ->comments ->removeElement ($ comment );
240213 }
241214
242- /**
243- * @return string
244- */
245215 public function getSummary ()
246216 {
247217 return $ this ->summary ;
@@ -255,27 +225,18 @@ public function setSummary($summary)
255225 $ this ->summary = $ summary ;
256226 }
257227
258- /**
259- * @param Tag $tag
260- */
261228 public function addTag (Tag $ tag )
262229 {
263230 if (!$ this ->tags ->contains ($ tag )) {
264231 $ this ->tags ->add ($ tag );
265232 }
266233 }
267234
268- /**
269- * @param Tag $tag
270- */
271235 public function removeTag (Tag $ tag )
272236 {
273237 $ this ->tags ->removeElement ($ tag );
274238 }
275239
276- /**
277- * @return Tag[]|ArrayCollection
278- */
279240 public function getTags ()
280241 {
281242 return $ this ->tags ;
0 commit comments