diff --git a/src/AppBundle/Entity/Comment.php b/src/AppBundle/Entity/Comment.php index 4f231dca2..b97235d5c 100644 --- a/src/AppBundle/Entity/Comment.php +++ b/src/AppBundle/Entity/Comment.php @@ -91,17 +91,11 @@ public function isLegitComment() return !$containsInvalidCharacters; } - /** - * @return int - */ public function getId() { return $this->id; } - /** - * @return string - */ public function getContent() { return $this->content; @@ -115,17 +109,11 @@ public function setContent($content) $this->content = $content; } - /** - * @return \DateTime - */ public function getPublishedAt() { return $this->publishedAt; } - /** - * @param \DateTime $publishedAt - */ public function setPublishedAt(\DateTime $publishedAt) { $this->publishedAt = $publishedAt; @@ -147,17 +135,11 @@ public function setAuthor(User $author) $this->author = $author; } - /** - * @return Post - */ public function getPost() { return $this->post; } - /** - * @param Post $post - */ public function setPost(Post $post) { $this->post = $post; diff --git a/src/AppBundle/Entity/Post.php b/src/AppBundle/Entity/Post.php index f98543af6..0e0d66e02 100644 --- a/src/AppBundle/Entity/Post.php +++ b/src/AppBundle/Entity/Post.php @@ -126,17 +126,11 @@ public function __construct() $this->tags = new ArrayCollection(); } - /** - * @return int - */ public function getId() { return $this->id; } - /** - * @return string - */ public function getTitle() { return $this->title; @@ -150,9 +144,6 @@ public function setTitle($title) $this->title = $title; } - /** - * @return string - */ public function getSlug() { return $this->slug; @@ -166,9 +157,6 @@ public function setSlug($slug) $this->slug = $slug; } - /** - * @return string - */ public function getContent() { return $this->content; @@ -182,17 +170,11 @@ public function setContent($content) $this->content = $content; } - /** - * @return \DateTime - */ public function getPublishedAt() { return $this->publishedAt; } - /** - * @param \DateTime $publishedAt - */ public function setPublishedAt(\DateTime $publishedAt) { $this->publishedAt = $publishedAt; @@ -214,34 +196,22 @@ public function setAuthor(User $author) $this->author = $author; } - /** - * @return Comment[]|ArrayCollection - */ public function getComments() { return $this->comments; } - /** - * @param Comment $comment - */ public function addComment(Comment $comment) { $this->comments->add($comment); $comment->setPost($this); } - /** - * @param Comment $comment - */ public function removeComment(Comment $comment) { $this->comments->removeElement($comment); } - /** - * @return string - */ public function getSummary() { return $this->summary; @@ -255,9 +225,6 @@ public function setSummary($summary) $this->summary = $summary; } - /** - * @param Tag $tag - */ public function addTag(Tag $tag) { if (!$this->tags->contains($tag)) { @@ -265,17 +232,11 @@ public function addTag(Tag $tag) } } - /** - * @param Tag $tag - */ public function removeTag(Tag $tag) { $this->tags->removeElement($tag); } - /** - * @return Tag[]|ArrayCollection - */ public function getTags() { return $this->tags; diff --git a/src/AppBundle/Entity/Tag.php b/src/AppBundle/Entity/Tag.php index fd5c53b0b..281430629 100644 --- a/src/AppBundle/Entity/Tag.php +++ b/src/AppBundle/Entity/Tag.php @@ -41,9 +41,6 @@ class Tag implements \JsonSerializable */ private $name; - /** - * @return int - */ public function getId() { return $this->id; @@ -57,9 +54,6 @@ public function setName($name) $this->name = $name; } - /** - * @return string - */ public function getName() { return $this->name; @@ -77,9 +71,6 @@ public function jsonSerialize() return $this->name; } - /** - * @return string - */ public function __toString() { return $this->name; diff --git a/src/AppBundle/Entity/User.php b/src/AppBundle/Entity/User.php index d3ed9654b..04d74b926 100644 --- a/src/AppBundle/Entity/User.php +++ b/src/AppBundle/Entity/User.php @@ -73,9 +73,6 @@ class User implements UserInterface, \Serializable */ private $roles = []; - /** - * @return int - */ public function getId() { return $this->id; @@ -89,17 +86,11 @@ public function setFullName($fullName) $this->fullName = $fullName; } - /** - * @return string - */ public function getFullName() { return $this->fullName; } - /** - * @return string - */ public function getUsername() { return $this->username; @@ -113,9 +104,6 @@ public function setUsername($username) $this->username = $username; } - /** - * @return string - */ public function getEmail() { return $this->email; @@ -129,9 +117,6 @@ public function setEmail($email) $this->email = $email; } - /** - * @return string - */ public function getPassword() { return $this->password; @@ -160,9 +145,6 @@ public function getRoles() return array_unique($roles); } - /** - * @param array $roles - */ public function setRoles(array $roles) { $this->roles = $roles;