]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Application.php
New header layout
[airbundle] / Entity / Application.php
index 48e69929edb8fd4d2163638124f73b2cfc859bbe..5d3120360342c6761cf51c76bca43fe7e2df1a60 100644 (file)
@@ -61,6 +61,11 @@ class Application {
         * Constructor
         */
        public function __construct() {
         * Constructor
         */
        public function __construct() {
+               //Set defaults
+               $this->score = null;
+               $this->canceled = null;
+               $this->created = new \DateTime('now');
+               $this->updated = new \DateTime('now');
                $this->session = null;
                $this->user = null;
        }
                $this->session = null;
                $this->user = null;
        }
@@ -79,9 +84,9 @@ class Application {
         *
         * @param Dance $dance
         *
         *
         * @param Dance $dance
         *
-        * @return Session
+        * @return Application
         */
         */
-       public function setDance(Dance $dance): Session {
+       public function setDance(Dance $dance): Application {
                $this->dance = $dance;
 
                return $this;
                $this->dance = $dance;
 
                return $this;