X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/2170a08e8b827db071883ad0b539a3ff97d6cd97..9ad367710337f576ffa541975db98b0ace80bbce:/Entity/Author.php diff --git a/Entity/Author.php b/Entity/Author.php new file mode 100644 index 0000000..fa493fe --- /dev/null +++ b/Entity/Author.php @@ -0,0 +1,241 @@ +articles = new \Doctrine\Common\Collections\ArrayCollection(); + $this->author_translations = new \Doctrine\Common\Collections\ArrayCollection(); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set name + * + * @param string $name + * + * @return Author + */ + public function setName($name) + { + $this->name = $name; + + return $this; + } + + /** + * Get name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Set created + * + * @param \DateTime $created + * + * @return Author + */ + public function setCreated($created) + { + $this->created = $created; + + return $this; + } + + /** + * Get created + * + * @return \DateTime + */ + public function getCreated() + { + return $this->created; + } + + /** + * Set updated + * + * @param \DateTime $updated + * + * @return Author + */ + public function setUpdated($updated) + { + $this->updated = $updated; + + return $this; + } + + /** + * Get updated + * + * @return \DateTime + */ + public function getUpdated() + { + return $this->updated; + } + + /** + * Add article + * + * @param \Rapsys\BlogBundle\Entity\Article $article + * + * @return Author + */ + public function addArticle(\Rapsys\BlogBundle\Entity\Article $article) + { + $this->articles[] = $article; + + return $this; + } + + /** + * Remove article + * + * @param \Rapsys\BlogBundle\Entity\Article $article + */ + public function removeArticle(\Rapsys\BlogBundle\Entity\Article $article) + { + $this->articles->removeElement($article); + } + + /** + * Get articles + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getArticles() + { + return $this->articles; + } + + /** + * Add authorTranslation + * + * @param \Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation + * + * @return Author + */ + public function addAuthorTranslation(\Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation) + { + $this->author_translations[] = $authorTranslation; + + return $this; + } + + /** + * Remove authorTranslation + * + * @param \Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation + */ + public function removeAuthorTranslation(\Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation) + { + $this->author_translations->removeElement($authorTranslation); + } + + /** + * Get authorTranslations + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getAuthorTranslations() + { + return $this->author_translations; + } + + /** + * Set id + * + * @param integer $id + * + * @return Author + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + /** + * @var string + */ + private $slug; + + + /** + * Set slug + * + * @param string $slug + * + * @return Author + */ + public function setSlug($slug) + { + $this->slug = $slug; + + return $this; + } + + /** + * Get slug + * + * @return string + */ + public function getSlug() + { + return $this->slug; + } +}