_propDict)) { if (is_a($this->_propDict["pattern"], "\Microsoft\Graph\Model\RecurrencePattern") || is_null($this->_propDict["pattern"])) { return $this->_propDict["pattern"]; } else { $this->_propDict["pattern"] = new RecurrencePattern($this->_propDict["pattern"]); return $this->_propDict["pattern"]; } } return null; } /** * Sets the pattern * The frequency of an event. For access reviews: Do not specify this property for a one-time access review. Only interval, dayOfMonth, and type (weekly, absoluteMonthly) properties of recurrencePattern are supported. * * @param RecurrencePattern $val The value to assign to the pattern * * @return PatternedRecurrence The PatternedRecurrence */ public function setPattern($val) { $this->_propDict["pattern"] = $val; return $this; } /** * Gets the range * The duration of an event. * * @return RecurrenceRange|null The range */ public function getRange() { if (array_key_exists("range", $this->_propDict)) { if (is_a($this->_propDict["range"], "\Microsoft\Graph\Model\RecurrenceRange") || is_null($this->_propDict["range"])) { return $this->_propDict["range"]; } else { $this->_propDict["range"] = new RecurrenceRange($this->_propDict["range"]); return $this->_propDict["range"]; } } return null; } /** * Sets the range * The duration of an event. * * @param RecurrenceRange $val The value to assign to the range * * @return PatternedRecurrence The PatternedRecurrence */ public function setRange($val) { $this->_propDict["range"] = $val; return $this; } }