public function days(DateInterval $diff)
    {
        if ($diff->days <= $this->max_days_count) {
            return $diff->days;
        }
        return false;
    }
public function days(DateInterval $diff)
    {
        if ($diff->days <= $this->max_days_count) {
            return $diff->days;
        }
        return false;
    }
public function days ( DateInterval $ diff ) { if ( $ diff -> days <= $ this -> max_days_count ) { return $ diff -> days ; } return false ; }
Number of days related to the interval or false if more.
@param DateInterval $diff
@return integer|false
Number of days related to the interval or false if more .