public function withIntervalInYears($intervalInYears)
    {
        $this->validateInterval($intervalInYears);
        $this->interval = $intervalInYears;
        $this->intervalUnit = IntervalUnit::YEAR;

        return $this;
    }
public function withIntervalInYears($intervalInYears)
    {
        $this->validateInterval($intervalInYears);
        $this->interval = $intervalInYears;
        $this->intervalUnit = IntervalUnit::YEAR;

        return $this;
    }
public function withIntervalInYears ( $ intervalInYears ) { $ this -> validateInterval ( $ intervalInYears ) ; $ this -> interval = $ intervalInYears ; $ this -> intervalUnit = IntervalUnit :: YEAR ; return $ this ; }
Specify an interval in the IntervalUnit.YEAR that the produced
Trigger will repeat at.

@param int $intervalInYears the number of years at which the trigger should repeat.

@return CalendarIntervalScheduleBuilder
Specify an interval in the IntervalUnit . YEAR that the produced Trigger will repeat at .