Skip to content

Commit 28771b0

Browse files
committed
minor #535 Revert "Updated the DocBlocks of the Entities from consistency pov" (bocharsky-bw)
This PR was merged into the master branch. Discussion ---------- Revert "Updated the DocBlocks of the Entities from consistency pov" This reverts #527 The reasons were described earlier in #394 Commits ------- 88d2100 Revert "Updated the DocBlocks of the Entities from consistency point of view."
2 parents b576730 + 88d2100 commit 28771b0

File tree

4 files changed

+0
-84
lines changed

4 files changed

+0
-84
lines changed

src/AppBundle/Entity/Comment.php

-18
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,11 @@ public function isLegitComment()
9191
return !$containsInvalidCharacters;
9292
}
9393

94-
/**
95-
* @return int
96-
*/
9794
public function getId()
9895
{
9996
return $this->id;
10097
}
10198

102-
/**
103-
* @return string
104-
*/
10599
public function getContent()
106100
{
107101
return $this->content;
@@ -115,17 +109,11 @@ public function setContent($content)
115109
$this->content = $content;
116110
}
117111

118-
/**
119-
* @return \DateTime
120-
*/
121112
public function getPublishedAt()
122113
{
123114
return $this->publishedAt;
124115
}
125116

126-
/**
127-
* @param \DateTime $publishedAt
128-
*/
129117
public function setPublishedAt(\DateTime $publishedAt)
130118
{
131119
$this->publishedAt = $publishedAt;
@@ -147,17 +135,11 @@ public function setAuthor(User $author)
147135
$this->author = $author;
148136
}
149137

150-
/**
151-
* @return Post
152-
*/
153138
public function getPost()
154139
{
155140
return $this->post;
156141
}
157142

158-
/**
159-
* @param Post $post
160-
*/
161143
public function setPost(Post $post)
162144
{
163145
$this->post = $post;

src/AppBundle/Entity/Post.php

-39
Original file line numberDiff line numberDiff line change
@@ -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;

src/AppBundle/Entity/Tag.php

-9
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ class Tag implements \JsonSerializable
4141
*/
4242
private $name;
4343

44-
/**
45-
* @return int
46-
*/
4744
public function getId()
4845
{
4946
return $this->id;
@@ -57,9 +54,6 @@ public function setName($name)
5754
$this->name = $name;
5855
}
5956

60-
/**
61-
* @return string
62-
*/
6357
public function getName()
6458
{
6559
return $this->name;
@@ -77,9 +71,6 @@ public function jsonSerialize()
7771
return $this->name;
7872
}
7973

80-
/**
81-
* @return string
82-
*/
8374
public function __toString()
8475
{
8576
return $this->name;

src/AppBundle/Entity/User.php

-18
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ class User implements UserInterface, \Serializable
7373
*/
7474
private $roles = [];
7575

76-
/**
77-
* @return int
78-
*/
7976
public function getId()
8077
{
8178
return $this->id;
@@ -89,17 +86,11 @@ public function setFullName($fullName)
8986
$this->fullName = $fullName;
9087
}
9188

92-
/**
93-
* @return string
94-
*/
9589
public function getFullName()
9690
{
9791
return $this->fullName;
9892
}
9993

100-
/**
101-
* @return string
102-
*/
10394
public function getUsername()
10495
{
10596
return $this->username;
@@ -113,9 +104,6 @@ public function setUsername($username)
113104
$this->username = $username;
114105
}
115106

116-
/**
117-
* @return string
118-
*/
119107
public function getEmail()
120108
{
121109
return $this->email;
@@ -129,9 +117,6 @@ public function setEmail($email)
129117
$this->email = $email;
130118
}
131119

132-
/**
133-
* @return string
134-
*/
135120
public function getPassword()
136121
{
137122
return $this->password;
@@ -160,9 +145,6 @@ public function getRoles()
160145
return array_unique($roles);
161146
}
162147

163-
/**
164-
* @param array $roles
165-
*/
166148
public function setRoles(array $roles)
167149
{
168150
$this->roles = $roles;

0 commit comments

Comments
 (0)