Cron\Schedule\CrontabSchedule::checkMinute PHP Method

checkMinute() protected method

Check if the minute matches.
protected checkMinute ( DateTime $now ) : boolean | null
$now DateTime
return boolean | null
    protected function checkMinute(\DateTime $now)
    {
        if ($this->parts['min'] != '*') {
            foreach ($this->parseRule($this->parts['min'], 0, 59) as $value) {
                if ($now->format('i') == $value) {
                    return true;
                }
            }
            return false;
        }
        return null;
    }