public function valid(\DateTime $now)
    {
        if (false === $this->checkMinute($now)) {
            return false;
        }
        if (false === $this->checkHour($now)) {
            return false;
        }
        if (false === $this->checkDay($now)) {
            return false;
        }
        if (false === $this->checkMonth($now)) {
            return false;
        }
        if (false === $this->checkDayOfWeek($now)) {
            return false;
        }

        return true;
    }
public function valid(\DateTime $now)
    {
        if (false === $this->checkMinute($now)) {
            return false;
        }
        if (false === $this->checkHour($now)) {
            return false;
        }
        if (false === $this->checkDay($now)) {
            return false;
        }
        if (false === $this->checkMonth($now)) {
            return false;
        }
        if (false === $this->checkDayOfWeek($now)) {
            return false;
        }

        return true;
    }
public function valid ( \ DateTime $ now ) { if ( false === $ this -> checkMinute ( $ now ) ) { return false ; } if ( false === $ this -> checkHour ( $ now ) ) { return false ; } if ( false === $ this -> checkDay ( $ now ) ) { return false ; } if ( false === $ this -> checkMonth ( $ now ) ) { return false ; } if ( false === $ this -> checkDayOfWeek ( $ now ) ) { return false ; } return true ; }
Validate if this pattern can run on the given date.

@param \DateTime $now

@return bool
Validate if this pattern can run on the given date .