public function __construct($alert_id = null, $date_from = null, $date_to = null) { parent::__construct(); $this->alert_id = $alert_id; $this->date_from = $date_from; $this->date_to = $date_to; }
public function __construct($alertId, $alertName, $frequency, $frequencyValue) { parent::__construct(); $this->alertId = $alertId; $this->alertName = $alertName; $this->frequency = $frequency; $this->frequencyValue = $frequencyValue; $this->lastSent = new \DateTime(); $this->setNextSend(); }