]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Entity/Title.php
Add parameter and return types
[userbundle] / Entity / Title.php
index 5a2b68515e3c0261d3ae0c285352c4fd90c32e1f..bcaf7858c56a82db19f2b4492045abb58b4a2d3c 100644 (file)
@@ -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;
+       }
 }