public function getStartStamp() { if ($this->start) { if (!$this->dayStartStamp) { $this->dayStartStamp = $this->start->getDayStartStamp(); } return $this->dayStartStamp; } return null; }
public function getDayStartStamp() { if (!$this->getHour() && !$this->getMinute() && !$this->getSecond()) { return $this->dateTime->getTimestamp(); } else { return parent::getDayStartStamp(); } }