]> Raphaël G. Git Repositories - airbundle/commitdiff
Rename title in civility
authorRaphaël Gertz <git@rapsys.eu>
Tue, 23 Feb 2021 23:17:08 +0000 (00:17 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 23 Feb 2021 23:17:08 +0000 (00:17 +0100)
Entity/Civility.php [new file with mode: 0644]

diff --git a/Entity/Civility.php b/Entity/Civility.php
new file mode 100644 (file)
index 0000000..86030ed
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+
+namespace Rapsys\AirBundle\Entity;
+
+class Civility extends \Rapsys\UserBundle\Entity\Civility {
+       /**
+        * @var string
+        */
+       private $short;
+
+       /**
+        * Set short
+        *
+        * @param string $short
+        *
+        * @return Civility
+        */
+       public function setShort($short) {
+               $this->short = $short;
+
+               return $this;
+       }
+
+       /**
+        * Get short
+        *
+        * @return string
+        */
+       public function getShort() {
+               return $this->short;
+       }
+
+       /**
+        * Returns a string representation of the civility
+        *
+        * @return string
+        */
+       public function __toString(): string {
+               return $this->short;
+       }
+}