_propDict)) { if (is_a($this->_propDict["nextOccurrenceDateTime"], "\DateTime") || is_null($this->_propDict["nextOccurrenceDateTime"])) { return $this->_propDict["nextOccurrenceDateTime"]; } else { $this->_propDict["nextOccurrenceDateTime"] = new \DateTime($this->_propDict["nextOccurrenceDateTime"]); return $this->_propDict["nextOccurrenceDateTime"]; } } return null; } /** * Sets the nextOccurrenceDateTime * The next date for this schedule. When a new task is instantiated to continue the recurrence series, this date is used for the dueDateTime of the new plannerTask. Auto-generated by the service. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. * * @param \DateTime $val The value to assign to the nextOccurrenceDateTime * * @return PlannerRecurrenceSchedule The PlannerRecurrenceSchedule */ public function setNextOccurrenceDateTime($val) { $this->_propDict["nextOccurrenceDateTime"] = $val; return $this; } /** * Gets the pattern * The pattern for recurrence. Required. * * @return RecurrencePattern|null The pattern */ public function getPattern() { if (array_key_exists("pattern", $this->_propDict)) { if (is_a($this->_propDict["pattern"], "\Beta\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 pattern for recurrence. Required. * * @param RecurrencePattern $val The value to assign to the pattern * * @return PlannerRecurrenceSchedule The PlannerRecurrenceSchedule */ public function setPattern($val) { $this->_propDict["pattern"] = $val; return $this; } /** * Gets the patternStartDateTime * The start date for the recurrence pattern. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Required. * * @return \DateTime|null The patternStartDateTime */ public function getPatternStartDateTime() { if (array_key_exists("patternStartDateTime", $this->_propDict)) { if (is_a($this->_propDict["patternStartDateTime"], "\DateTime") || is_null($this->_propDict["patternStartDateTime"])) { return $this->_propDict["patternStartDateTime"]; } else { $this->_propDict["patternStartDateTime"] = new \DateTime($this->_propDict["patternStartDateTime"]); return $this->_propDict["patternStartDateTime"]; } } return null; } /** * Sets the patternStartDateTime * The start date for the recurrence pattern. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Required. * * @param \DateTime $val The value to assign to the patternStartDateTime * * @return PlannerRecurrenceSchedule The PlannerRecurrenceSchedule */ public function setPatternStartDateTime($val) { $this->_propDict["patternStartDateTime"] = $val; return $this; } }