_propDict)) { if (is_a($this->_propDict["draftOpenShift"], "\Microsoft\Graph\Model\OpenShiftItem") || is_null($this->_propDict["draftOpenShift"])) { return $this->_propDict["draftOpenShift"]; } else { $this->_propDict["draftOpenShift"] = new OpenShiftItem($this->_propDict["draftOpenShift"]); return $this->_propDict["draftOpenShift"]; } } return null; } /** * Sets the draftOpenShift * An unpublished open shift. * * @param OpenShiftItem $val The draftOpenShift * * @return OpenShift */ public function setDraftOpenShift($val) { $this->_propDict["draftOpenShift"] = $val; return $this; } /** * Gets the schedulingGroupId * ID for the scheduling group that the open shift belongs to. * * @return string|null The schedulingGroupId */ public function getSchedulingGroupId() { if (array_key_exists("schedulingGroupId", $this->_propDict)) { return $this->_propDict["schedulingGroupId"]; } else { return null; } } /** * Sets the schedulingGroupId * ID for the scheduling group that the open shift belongs to. * * @param string $val The schedulingGroupId * * @return OpenShift */ public function setSchedulingGroupId($val) { $this->_propDict["schedulingGroupId"] = $val; return $this; } /** * Gets the sharedOpenShift * A published open shift. * * @return OpenShiftItem|null The sharedOpenShift */ public function getSharedOpenShift() { if (array_key_exists("sharedOpenShift", $this->_propDict)) { if (is_a($this->_propDict["sharedOpenShift"], "\Microsoft\Graph\Model\OpenShiftItem") || is_null($this->_propDict["sharedOpenShift"])) { return $this->_propDict["sharedOpenShift"]; } else { $this->_propDict["sharedOpenShift"] = new OpenShiftItem($this->_propDict["sharedOpenShift"]); return $this->_propDict["sharedOpenShift"]; } } return null; } /** * Sets the sharedOpenShift * A published open shift. * * @param OpenShiftItem $val The sharedOpenShift * * @return OpenShift */ public function setSharedOpenShift($val) { $this->_propDict["sharedOpenShift"] = $val; return $this; } }