X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/cd63c23839fe5f0d0959182cfa9e20d0f162cd7b..e21af741a42f006b9474700f2bff3de252e7ca36:/Entity/Title.php diff --git a/Entity/Title.php b/Entity/Title.php index 5a2b685..bcaf785 100644 --- a/Entity/Title.php +++ b/Entity/Title.php @@ -11,11 +11,6 @@ class Title { */ protected $id; - /** - * @var string - */ - protected $short; - /** * @var string */ @@ -52,28 +47,6 @@ class Title { return $this->id; } - /** - * Set short - * - * @param string $short - * - * @return Title - */ - public function setShort($short) { - $this->short = $short; - - return $this; - } - - /** - * Get short - * - * @return string - */ - public function getShort() { - return $this->short; - } - /** * Set title * @@ -170,4 +143,13 @@ class Title { public function getUsers() { return $this->users; } + + /** + * Returns a string representation of the title + * + * @return string + */ + public function __toString(): string { + return $this->title; + } }