Skip to content

Revert "Updated the DocBlocks of the Entities from consistency pov" #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/AppBundle/Entity/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
39 changes: 0 additions & 39 deletions src/AppBundle/Entity/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -150,9 +144,6 @@ public function setTitle($title)
$this->title = $title;
}

/**
* @return string
*/
public function getSlug()
{
return $this->slug;
Expand All @@ -166,9 +157,6 @@ public function setSlug($slug)
$this->slug = $slug;
}

/**
* @return string
*/
public function getContent()
{
return $this->content;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -255,27 +225,18 @@ public function setSummary($summary)
$this->summary = $summary;
}

/**
* @param Tag $tag
*/
public function addTag(Tag $tag)
{
if (!$this->tags->contains($tag)) {
$this->tags->add($tag);
}
}

/**
* @param Tag $tag
*/
public function removeTag(Tag $tag)
{
$this->tags->removeElement($tag);
}

/**
* @return Tag[]|ArrayCollection
*/
public function getTags()
{
return $this->tags;
Expand Down
9 changes: 0 additions & 9 deletions src/AppBundle/Entity/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ class Tag implements \JsonSerializable
*/
private $name;

/**
* @return int
*/
public function getId()
{
return $this->id;
Expand All @@ -57,9 +54,6 @@ public function setName($name)
$this->name = $name;
}

/**
* @return string
*/
public function getName()
{
return $this->name;
Expand All @@ -77,9 +71,6 @@ public function jsonSerialize()
return $this->name;
}

/**
* @return string
*/
public function __toString()
{
return $this->name;
Expand Down
18 changes: 0 additions & 18 deletions src/AppBundle/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ class User implements UserInterface, \Serializable
*/
private $roles = [];

/**
* @return int
*/
public function getId()
{
return $this->id;
Expand All @@ -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;
Expand All @@ -113,9 +104,6 @@ public function setUsername($username)
$this->username = $username;
}

/**
* @return string
*/
public function getEmail()
{
return $this->email;
Expand All @@ -129,9 +117,6 @@ public function setEmail($email)
$this->email = $email;
}

/**
* @return string
*/
public function getPassword()
{
return $this->password;
Expand Down Expand Up @@ -160,9 +145,6 @@ public function getRoles()
return array_unique($roles);
}

/**
* @param array $roles
*/
public function setRoles(array $roles)
{
$this->roles = $roles;
Expand Down