src/Charcoal/Cms/AbstractEvent.php
public function verifyDates()
    {
        if (!$this->startDate()) {
            $this->setStartDate('now');
        }

        if (!$this->endDate()) {
            $this->setEndDate($this->startDate());
        }

        if (!$this->publishDate()) {
            $this->setPublishDate('now');
        }
    }
public function verifyDates()
    {
        if (!$this->startDate()) {
            $this->setStartDate('now');
        }

        if (!$this->endDate()) {
            $this->setEndDate($this->startDate());
        }

        if (!$this->publishDate()) {
            $this->setPublishDate('now');
        }
    }
public function verifyDates ( ) { if ( ! $ this -> startDate ( ) ) { $ this -> setStartDate ( 'now' ) ; } if ( ! $ this -> endDate ( ) ) { $ this -> setEndDate ( $ this -> startDate ( ) ) ; } if ( ! $ this -> publishDate ( ) ) { $ this -> setPublishDate ( 'now' ) ; } }
Some dates cannot be null
@return void
Some dates cannot be null