]> Raphaël G. Git Repositories - airbundle/blobdiff - Entity/User.php
Remove googleScopes const
[airbundle] / Entity / User.php
index 4b3d4e3e177cf1dbae72a952d9885896ed102c87..178bcec8a9799c96a517b1974ccbfe7803dec95e 100644 (file)
@@ -1,11 +1,11 @@
 <?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.
  */
 
@@ -17,64 +17,67 @@ use Doctrine\Common\Collections\ArrayCollection;
 use Rapsys\UserBundle\Entity\Civility;
 use Rapsys\UserBundle\Entity\User as BaseUser;
 
+/**
+ * {@inheritdoc}
+ */
 class User extends BaseUser {
        /**
-        * @var ?string
+        * City
         */
-       private ?string $city;
+       private ?string $city = null;
 
        /**
-        * @var ?string
+        * Country
         */
-       private ?string $phone;
+       private ?Country $country = null;
 
        /**
-        * @var Country
+        * Phone
         */
-       private ?Country $country;
+       private ?string $phone = null;
 
        /**
-        * @var ?string
+        * Pseudonym
         */
-       private ?string $pseudonym;
+       private ?string $pseudonym = null;
 
        /**
-        * @var ?string
+        * Zipcode
         */
-       private ?string $zipcode;
+       private ?string $zipcode = null;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Applications collection
         */
        private Collection $applications;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Dances collection
         */
        private Collection $dances;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Locations collection
         */
        private Collection $locations;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Snippets collection
         */
        private Collection $snippets;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Subscribers collection
         */
        private Collection $subscribers;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Subscriptions collection
         */
        private Collection $subscriptions;
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * Google tokens collection
         */
        private Collection $googleTokens;
 
@@ -93,13 +96,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();