summary | 
shortlog | 
log | 
commit | commitdiff | 
tree
raw | 
patch | 
inline | side by side (from parent 1: 
aa392e7)
 
Add default values to class member variables
Strict types
Cleanup
 <?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.
  */
 
  */
 class Application {
        /**
  */
 class Application {
        /**
+       private ?int $id = null;
+       private ?float $score = null;
+       private ?\DateTime $canceled = null;
+       private \DateTime $created;
+       private \DateTime $updated;
-        * @var \Rapsys\AirBundle\Entity\Session
+       private $session = null;
-        * @var \Rapsys\AirBundle\Entity\User
 
        /**
         * Constructor
         */
        public function __construct() {
                //Set defaults
 
        /**
         * Constructor
         */
        public function __construct() {
                //Set defaults
-               $this->score = null;
-               $this->canceled = null;
                $this->created = new \DateTime('now');
                $this->updated = new \DateTime('now');
                $this->created = new \DateTime('now');
                $this->updated = new \DateTime('now');
-               $this->session = null;
-               $this->user = null;
-       public function getId(): int {
+       public function getId(): ?int {