_propDict)) { return $this->_propDict["correlationId"]; } else { return null; } } /** * Sets the correlationId * Id used for tracing the failure in the service. * * @param string $val The correlationId * * @return DeviceManagementTroubleshootingEvent */ public function setCorrelationId($val) { $this->_propDict["correlationId"] = $val; return $this; } /** * Gets the eventDateTime * Time when the event occurred . * * @return \DateTime|null The eventDateTime */ public function getEventDateTime() { if (array_key_exists("eventDateTime", $this->_propDict)) { if (is_a($this->_propDict["eventDateTime"], "\DateTime") || is_null($this->_propDict["eventDateTime"])) { return $this->_propDict["eventDateTime"]; } else { $this->_propDict["eventDateTime"] = new \DateTime($this->_propDict["eventDateTime"]); return $this->_propDict["eventDateTime"]; } } return null; } /** * Sets the eventDateTime * Time when the event occurred . * * @param \DateTime $val The eventDateTime * * @return DeviceManagementTroubleshootingEvent */ public function setEventDateTime($val) { $this->_propDict["eventDateTime"] = $val; return $this; } }