X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/6d87d1dbad7e333cd41b57c641515ae05a7653f3..afb6e7e11fa379a1afbcf8f67f3eaa25888171d2:/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;