_propDict)) { if (is_a($this->_propDict["historyData"], "\Beta\Microsoft\Graph\Model\DeviceHealthScriptRemediationHistoryData") || is_null($this->_propDict["historyData"])) { return $this->_propDict["historyData"]; } else { $this->_propDict["historyData"] = new DeviceHealthScriptRemediationHistoryData($this->_propDict["historyData"]); return $this->_propDict["historyData"]; } } return null; } /** * Sets the historyData * The number of devices remediated by the device health script on the given date. * * @param DeviceHealthScriptRemediationHistoryData $val The value to assign to the historyData * * @return DeviceHealthScriptRemediationHistory The DeviceHealthScriptRemediationHistory */ public function setHistoryData($val) { $this->_propDict["historyData"] = $val; return $this; } /** * Gets the lastModifiedDateTime * The date on which the results history is calculated for the healthscript. * * @return \DateTime|null The lastModifiedDateTime */ public function getLastModifiedDateTime() { if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { return $this->_propDict["lastModifiedDateTime"]; } else { $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); return $this->_propDict["lastModifiedDateTime"]; } } return null; } /** * Sets the lastModifiedDateTime * The date on which the results history is calculated for the healthscript. * * @param \DateTime $val The value to assign to the lastModifiedDateTime * * @return DeviceHealthScriptRemediationHistory The DeviceHealthScriptRemediationHistory */ public function setLastModifiedDateTime($val) { $this->_propDict["lastModifiedDateTime"] = $val; return $this; } }