* 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;
}
*
* @param Dance $dance
*
- * @return Session
+ * @return Application
*/
- public function setDance(Dance $dance): Session {
+ public function setDance(Dance $dance): Application {
$this->dance = $dance;
return $this;
* Constructor
*/
public function __construct() {
+ //Set defaults
+ $this->created = new \DateTime('now');
+ $this->updated = new \DateTime('now');
$this->applications = new ArrayCollection();
$this->users = new ArrayCollection();
}
* Constructor
*/
public function __construct() {
+ //Set defaults
+ $this->created = new \DateTime('now');
+ $this->updated = new \DateTime('now');
$this->sessions = new ArrayCollection();
$this->snippets = new ArrayCollection();
$this->users = new ArrayCollection();
* Constructor
*/
public function __construct() {
+ //Set defaults
$this->begin = null;
$this->start = null;
$this->length = null;
$this->stop = null;
+ $this->premium = null;
$this->rainfall = null;
$this->rainrisk = null;
$this->realfeel = null;
$this->temperaturemin = null;
$this->temperaturemax = null;
$this->locked = null;
- $this->premium = null;
+ $this->created = new \DateTime('now');
+ $this->updated = new \DateTime('now');
$this->applications = new ArrayCollection();
}