_propDict)) { if (is_a($this->_propDict["recurrence"], "\Microsoft\Graph\Model\PatternedRecurrence") || is_null($this->_propDict["recurrence"])) { return $this->_propDict["recurrence"]; } else { $this->_propDict["recurrence"] = new PatternedRecurrence($this->_propDict["recurrence"]); return $this->_propDict["recurrence"]; } } return null; } /** * Sets the recurrence * Specifies the pattern for recurrence * * @param PatternedRecurrence $val The value to assign to the recurrence * * @return ShiftAvailability The ShiftAvailability */ public function setRecurrence($val) { $this->_propDict["recurrence"] = $val; return $this; } /** * Gets the timeSlots * The time slot(s) preferred by the user. * * @return TimeRange|null The timeSlots */ public function getTimeSlots() { if (array_key_exists("timeSlots", $this->_propDict)) { if (is_a($this->_propDict["timeSlots"], "\Microsoft\Graph\Model\TimeRange") || is_null($this->_propDict["timeSlots"])) { return $this->_propDict["timeSlots"]; } else { $this->_propDict["timeSlots"] = new TimeRange($this->_propDict["timeSlots"]); return $this->_propDict["timeSlots"]; } } return null; } /** * Sets the timeSlots * The time slot(s) preferred by the user. * * @param TimeRange $val The value to assign to the timeSlots * * @return ShiftAvailability The ShiftAvailability */ public function setTimeSlots($val) { $this->_propDict["timeSlots"] = $val; return $this; } /** * Gets the timeZone * Specifies the time zone for the indicated time. * * @return string|null The timeZone */ public function getTimeZone() { if (array_key_exists("timeZone", $this->_propDict)) { return $this->_propDict["timeZone"]; } else { return null; } } /** * Sets the timeZone * Specifies the time zone for the indicated time. * * @param string $val The value of the timeZone * * @return ShiftAvailability */ public function setTimeZone($val) { $this->_propDict["timeZone"] = $val; return $this; } }