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