X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/e0cf523ebc5837a1bc23bec7e1917dbb75c8d747..8ca4bc4878816fe86ba3457dd0f8a442da45d23d:/Entity/Application.php diff --git a/Entity/Application.php b/Entity/Application.php index 48e6992..5d31203 100644 --- a/Entity/Application.php +++ b/Entity/Application.php @@ -61,6 +61,11 @@ class Application { * 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; } @@ -79,9 +84,9 @@ class Application { * * @param Dance $dance * - * @return Session + * @return Application */ - public function setDance(Dance $dance): Session { + public function setDance(Dance $dance): Application { $this->dance = $dance; return $this;