private $stop;
/**
- * @var boolean
+ * @var bool
*/
private $premium;
* 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->application = null;
$this->applications = new ArrayCollection();
}
/**
* Set premium
*
- * @param boolean $premium
+ * @param bool $premium
*
* @return Session
*/
*
* @return Session
*/
- public function setApplication(Application $application): Session {
+ public function setApplication(?Application $application): Session {
$this->application = $application;
return $this;