_propDict)) { if (is_a($this->_propDict["activities"], "\Microsoft\Graph\Model\ShiftActivity") || is_null($this->_propDict["activities"])) { return $this->_propDict["activities"]; } else { $this->_propDict["activities"] = new ShiftActivity($this->_propDict["activities"]); return $this->_propDict["activities"]; } } return null; } /** * Sets the activities * An incremental part of a shift which can cover details of when and where an employee is during their shift. For example, an assignment or a scheduled break or lunch. Required. * * @param ShiftActivity $val The value to assign to the activities * * @return ShiftItem The ShiftItem */ public function setActivities($val) { $this->_propDict["activities"] = $val; return $this; } /** * Gets the displayName * The shift label of the shiftItem. * * @return string|null The displayName */ public function getDisplayName() { if (array_key_exists("displayName", $this->_propDict)) { return $this->_propDict["displayName"]; } else { return null; } } /** * Sets the displayName * The shift label of the shiftItem. * * @param string $val The value of the displayName * * @return ShiftItem */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the notes * The shift notes for the shiftItem. * * @return string|null The notes */ public function getNotes() { if (array_key_exists("notes", $this->_propDict)) { return $this->_propDict["notes"]; } else { return null; } } /** * Sets the notes * The shift notes for the shiftItem. * * @param string $val The value of the notes * * @return ShiftItem */ public function setNotes($val) { $this->_propDict["notes"] = $val; return $this; } }