]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Entity/Title.php
Remove default ROLE_USER role from user entity, group(s), by title(s), (is|are) now...
[userbundle] / Entity / Title.php
index 5a2b68515e3c0261d3ae0c285352c4fd90c32e1f..bcaf7858c56a82db19f2b4492045abb58b4a2d3c 100644 (file)
@@ -11,11 +11,6 @@ class Title {
         */
        protected $id;
 
         */
        protected $id;
 
-       /**
-        * @var string
-        */
-       protected $short;
-
        /**
         * @var string
         */
        /**
         * @var string
         */
@@ -52,28 +47,6 @@ class Title {
                return $this->id;
        }
 
                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
         *
        /**
         * Set title
         *
@@ -170,4 +143,13 @@ class Title {
        public function getUsers() {
                return $this->users;
        }
        public function getUsers() {
                return $this->users;
        }
+
+       /**
+        * Returns a string representation of the title
+        *
+        * @return string
+        */
+       public function __toString(): string {
+               return $this->title;
+       }
 }
 }