X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/bab59a4b88a081a7a27a53b4559d74e63b68db92..56285722981037cdb3205b5c6cc2aed5f14c7b16:/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; + } }