src/Property/Event/RecurrenceRule.php
public function setFreq($freq)
    {
        if (@constant('static::FREQ_' . $freq) !== null) {
            $this->freq = $freq;
        } else {
            throw new \InvalidArgumentException("The Frequency {$freq} is not supported.");
        }

        return $this;
    }
public function setFreq($freq)
    {
        if (@constant('static::FREQ_' . $freq) !== null) {
            $this->freq = $freq;
        } else {
            throw new \InvalidArgumentException("The Frequency {$freq} is not supported.");
        }

        return $this;
    }
public function setFreq ( $ freq ) { if ( @ constant ( 'static::FREQ_' . $ freq ) !== null ) { $ this -> freq = $ freq ; } else { throw new \ InvalidArgumentException ( "The Frequency {$freq} is not supported." ) ; } return $ this ; }
The FREQ rule part identifies the type of recurrence rule.  This
rule part MUST be specified in the recurrence rule.  Valid values
include.

SECONDLY, to specify repeating events based on an interval of a second or more;
MINUTELY, to specify repeating events based on an interval of a minute or more;
HOURLY, to specify repeating events based on an interval of an hour or more;
DAILY, to specify repeating events based on an interval of a day or more;
WEEKLY, to specify repeating events based on an interval of a week or more;
MONTHLY, to specify repeating events based on an interval of a month or more;
YEARLY, to specify repeating events based on an interval of a year or more.

@param string $freq

@return $this

@throws \InvalidArgumentException
The FREQ rule part identifies the type of recurrence rule . This rule part MUST be specified in the recurrence rule . Valid values include .