OphTrOperationbooking_Operation_Sequence::checkTimes PHP Method

checkTimes() public method

public checkTimes ( )
    public function checkTimes()
    {
        $start = strtotime($this->start_time);
        $end = strtotime($this->end_time);
        if ($end <= $start) {
            $this->addError('end_time', 'End time must be after the start time.');
        }
    }