X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/6d87d1dbad7e333cd41b57c641515ae05a7653f3..53b0072e189e79e57d31f02e9e4ef00ae53511ff:/Entity/Application.php?ds=sidebyside 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;