]> Raphaël G. Git Repositories - airbundle/blobdiff - Entity/User.php
Fix header comment
[airbundle] / Entity / User.php
index 807fecececcbae08ceaf8626904a327c31cbf7f4..7a82144e9c3790f222f15e1ef451bc60a4f96353 100644 (file)
@@ -1,11 +1,11 @@
 <?php declare(strict_types=1);
 
 /*
 <?php declare(strict_types=1);
 
 /*
- * this file is part of the rapsys packbundle package.
+ * This file is part of the Rapsys AirBundle package.
  *
  *
- * (c) raphaël gertz <symfony@rapsys.eu>
+ * (c) Raphaël Gertz <symfony@rapsys.eu>
  *
  *
- * for the full copyright and license information, please view the license
+ * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
  * file that was distributed with this source code.
  */
 
@@ -14,66 +14,67 @@ namespace Rapsys\AirBundle\Entity;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\Common\Collections\ArrayCollection;
 
 use Doctrine\Common\Collections\Collection;
 use Doctrine\Common\Collections\ArrayCollection;
 
+use Rapsys\UserBundle\Entity\Civility;
 use Rapsys\UserBundle\Entity\User as BaseUser;
 
 class User extends BaseUser {
        /**
 use Rapsys\UserBundle\Entity\User as BaseUser;
 
 class User extends BaseUser {
        /**
-        * @var ?string
+        * City
         */
        private ?string $city;
 
        /**
         */
        private ?string $city;
 
        /**
-        * @var ?string
+        * Phone
         */
        private ?string $phone;
 
        /**
         */
        private ?string $phone;
 
        /**
-        * @var Country
+        * Country
         */
        private ?Country $country;
 
        /**
         */
        private ?Country $country;
 
        /**
-        * @var ?string
+        * Pseudonym
         */
        private ?string $pseudonym;
 
        /**
         */
        private ?string $pseudonym;
 
        /**
-        * @var ?string
+        * Zipcode
         */
        private ?string $zipcode;
 
        /**
         */
        private ?string $zipcode;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Applications collection
         */
        private Collection $applications;
 
        /**
         */
        private Collection $applications;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Dances collection
         */
        private Collection $dances;
 
        /**
         */
        private Collection $dances;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Locations collection
         */
        private Collection $locations;
 
        /**
         */
        private Collection $locations;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Snippets collection
         */
        private Collection $snippets;
 
        /**
         */
        private Collection $snippets;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Subscribers collection
         */
        private Collection $subscribers;
 
        /**
         */
        private Collection $subscribers;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Subscriptions collection
         */
        private Collection $subscriptions;
 
        /**
         */
        private Collection $subscriptions;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Google tokens collection
         */
        private Collection $googleTokens;
 
         */
        private Collection $googleTokens;
 
@@ -81,10 +82,16 @@ class User extends BaseUser {
         * Constructor
         *
         * @param string $mail The user mail
         * Constructor
         *
         * @param string $mail The user mail
-        */
-       public function __construct(string $mail) {
+        * @param string $password The user password
+        * @param ?Civility $civility The user civility
+        * @param ?string $forename The user forename
+        * @param ?string $surname The user surname
+        * @param bool $active The user active
+        * @param bool $enable The user enable
+        */
+       public function __construct(protected string $mail, protected string $password, protected ?Civility $civility = null, protected ?string $forename = null, protected ?string $surname = null, protected bool $active = false, protected bool $enable = true) {
                //Call parent constructor
                //Call parent constructor
-               parent::__construct($mail);
+               parent::__construct($this->mail, $this->password, $this->civility, $this->forename, $this->surname, $this->active, $this->enable);
 
                //Set defaults
                $this->city = null;
 
                //Set defaults
                $this->city = null;