OphTrOperationbooking_Operation_Sequence::checkTimes PHP Méthode

checkTimes() public méthode

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.');
        }
    }