Cron\Schedule\CrontabSchedule::checkMinute PHP 메소드

checkMinute() 보호된 메소드

Check if the minute matches.
protected checkMinute ( DateTime $now ) : boolean | null
$now DateTime
리턴 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;
    }