CronExpression.php
public function matches(\DateTime $date)
    {
        foreach ($this->fields as $field) {
            if (!$field->matches($date)) {
                return false;
            }
        }

        return true;
    }
public function matches(\DateTime $date)
    {
        foreach ($this->fields as $field) {
            if (!$field->matches($date)) {
                return false;
            }
        }

        return true;
    }
public function matches ( \ DateTime $ date ) { foreach ( $ this -> fields as $ field ) { if ( ! $ field -> matches ( $ date ) ) { return false ; } } return true ; }
Checks if the CRON expression matches the given date.

@param \DateTime $date

@return Boolean
Checks if the CRON expression matches the given date .