X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/34d5b979dc34fbbd89e3f321024a1a79718d0e6e..ff832b7380916c7d63401978ca6b39bd2a35ef39:/Entity/Civility.php diff --git a/Entity/Civility.php b/Entity/Civility.php new file mode 100644 index 0000000..83c7f47 --- /dev/null +++ b/Entity/Civility.php @@ -0,0 +1,155 @@ +users = new \Doctrine\Common\Collections\ArrayCollection(); + } + + /** + * Get id + * + * @return integer + */ + public function getId() { + return $this->id; + } + + /** + * Set title + * + * @param string $title + * + * @return Civility + */ + public function setTitle($title) { + $this->title = $title; + + return $this; + } + + /** + * Get title + * + * @return string + */ + public function getTitle() { + return $this->title; + } + + /** + * Set created + * + * @param \DateTime $created + * + * @return Civility + */ + 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 Civility + */ + public function setUpdated($updated) { + $this->updated = $updated; + + return $this; + } + + /** + * Get updated + * + * @return \DateTime + */ + public function getUpdated() { + return $this->updated; + } + + /** + * Add user + * + * @param \Rapsys\UserBundle\Entity\User $user + * + * @return Civility + */ + public function addUser(\Rapsys\UserBundle\Entity\User $user) { + $this->users[] = $user; + + return $this; + } + + /** + * Remove user + * + * @param \Rapsys\UserBundle\Entity\User $user + */ + public function removeUser(\Rapsys\UserBundle\Entity\User $user) { + $this->users->removeElement($user); + } + + /** + * Get users + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getUsers() { + return $this->users; + } + + /** + * Returns a string representation of the title + * + * @return string + */ + public function __toString(): string { + return $this->title; + } +}