]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/User.php
Match constructor prototype
[airbundle] / Entity / User.php
index 7a82144e9c3790f222f15e1ef451bc60a4f96353..3a1f63f9ed44bb2d1b56828e6d715f6d80c4409a 100644 (file)
@@ -17,31 +17,44 @@ use Doctrine\Common\Collections\ArrayCollection;
 use Rapsys\UserBundle\Entity\Civility;
 use Rapsys\UserBundle\Entity\User as BaseUser;
 
+/**
+ * {@inheritdoc}
+ */
 class User extends BaseUser {
        /**
         * City
         */
-       private ?string $city;
+       private ?string $city = null;
 
        /**
-        * Phone
+        * Country
         */
-       private ?string $phone;
+       private ?Country $country = null;
 
        /**
-        * Country
+        * Phone
         */
-       private ?Country $country;
+       private ?string $phone = null;
 
        /**
         * Pseudonym
         */
-       private ?string $pseudonym;
+       private ?string $pseudonym = null;
 
        /**
         * Zipcode
         */
-       private ?string $zipcode;
+       private ?string $zipcode = null;
+
+       /**
+        * Mail id
+        */
+       private ?string $mid = null;
+
+       /**
+        * Mail ip
+        */
+       private ?string $mip = null;
 
        /**
         * Applications collection
@@ -93,13 +106,6 @@ class User extends BaseUser {
                //Call parent constructor
                parent::__construct($this->mail, $this->password, $this->civility, $this->forename, $this->surname, $this->active, $this->enable);
 
-               //Set defaults
-               $this->city = null;
-               $this->country = null;
-               $this->phone = null;
-               $this->pseudonym = null;
-               $this->zipcode = null;
-
                //Set collections
                $this->applications = new ArrayCollection();
                $this->dances = new ArrayCollection();
@@ -220,6 +226,50 @@ class User extends BaseUser {
                return $this->zipcode;
        }
 
+       /**
+        * Set mail id
+        *
+        * @param string $mid
+        *
+        * @return User
+        */
+       public function setMid(?string $mid): User {
+               $this->mid = $mid;
+
+               return $this;
+       }
+
+       /**
+        * Get mail id
+        *
+        * @return string
+        */
+       public function getMid(): ?string {
+               return $this->mid;
+       }
+
+       /**
+        * Set mail ip
+        *
+        * @param string $mip
+        *
+        * @return User
+        */
+       public function setMip(?string $mip): User {
+               $this->mip = $mip;
+
+               return $this;
+       }
+
+       /**
+        * Get mail ip
+        *
+        * @return string
+        */
+       public function getMip(): ?string {
+               return $this->mip;
+       }
+
        /**
         * Add application
         *