_propDict)) { if (is_a($this->_propDict["occurrenceDateTime"], "\DateTime") || is_null($this->_propDict["occurrenceDateTime"])) { return $this->_propDict["occurrenceDateTime"]; } else { $this->_propDict["occurrenceDateTime"] = new \DateTime($this->_propDict["occurrenceDateTime"]); return $this->_propDict["occurrenceDateTime"]; } } return null; } /** * Sets the occurrenceDateTime * Time when the history item occurred. * * @param \DateTime $val The value to assign to the occurrenceDateTime * * @return MobileAppTroubleshootingHistoryItem The MobileAppTroubleshootingHistoryItem */ public function setOccurrenceDateTime($val) { $this->_propDict["occurrenceDateTime"] = $val; return $this; } /** * Gets the troubleshootingErrorDetails * Object containing detailed information about the error and its remediation. * * @return DeviceManagementTroubleshootingErrorDetails|null The troubleshootingErrorDetails */ public function getTroubleshootingErrorDetails() { if (array_key_exists("troubleshootingErrorDetails", $this->_propDict)) { if (is_a($this->_propDict["troubleshootingErrorDetails"], "\Beta\Microsoft\Graph\Model\DeviceManagementTroubleshootingErrorDetails") || is_null($this->_propDict["troubleshootingErrorDetails"])) { return $this->_propDict["troubleshootingErrorDetails"]; } else { $this->_propDict["troubleshootingErrorDetails"] = new DeviceManagementTroubleshootingErrorDetails($this->_propDict["troubleshootingErrorDetails"]); return $this->_propDict["troubleshootingErrorDetails"]; } } return null; } /** * Sets the troubleshootingErrorDetails * Object containing detailed information about the error and its remediation. * * @param DeviceManagementTroubleshootingErrorDetails $val The value to assign to the troubleshootingErrorDetails * * @return MobileAppTroubleshootingHistoryItem The MobileAppTroubleshootingHistoryItem */ public function setTroubleshootingErrorDetails($val) { $this->_propDict["troubleshootingErrorDetails"] = $val; return $this; } }