Пример #1
0
 public function getStartStamp()
 {
     if ($this->start) {
         if (!$this->dayStartStamp) {
             $this->dayStartStamp = $this->start->getDayStartStamp();
         }
         return $this->dayStartStamp;
     }
     return null;
 }
Пример #2
0
 public function getDayStartStamp()
 {
     if (!$this->getHour() && !$this->getMinute() && !$this->getSecond()) {
         return $this->dateTime->getTimestamp();
     } else {
         return parent::getDayStartStamp();
     }
 }