_propDict)) { if (is_a($this->_propDict["startDateTime"], "\DateTime") || is_null($this->_propDict["startDateTime"])) { return $this->_propDict["startDateTime"]; } else { $this->_propDict["startDateTime"] = new \DateTime($this->_propDict["startDateTime"]); return $this->_propDict["startDateTime"]; } } return null; } /** * Sets the startDateTime * The date and time when the particular activity occurred. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @param \DateTime $val The startDateTime * * @return ExternalActivity */ public function setStartDateTime($val) { $this->_propDict["startDateTime"] = $val; return $this; } /** * Gets the type * The type of activity performed. The possible values are: viewed, modified, created, commented, unknownFutureValue. * * @return ExternalActivityType|null The type */ public function getType() { if (array_key_exists("type", $this->_propDict)) { if (is_a($this->_propDict["type"], "\Microsoft\Graph\ExternalConnectors\Model\ExternalActivityType") || is_null($this->_propDict["type"])) { return $this->_propDict["type"]; } else { $this->_propDict["type"] = new ExternalActivityType($this->_propDict["type"]); return $this->_propDict["type"]; } } return null; } /** * Sets the type * The type of activity performed. The possible values are: viewed, modified, created, commented, unknownFutureValue. * * @param ExternalActivityType $val The type * * @return ExternalActivity */ public function setType($val) { $this->_propDict["type"] = $val; return $this; } /** * Gets the performedBy * Represents an identity used to identify who is responsible for the activity. * * @return Identity|null The performedBy */ public function getPerformedBy() { if (array_key_exists("performedBy", $this->_propDict)) { if (is_a($this->_propDict["performedBy"], "\Microsoft\Graph\ExternalConnectors\Model\Identity") || is_null($this->_propDict["performedBy"])) { return $this->_propDict["performedBy"]; } else { $this->_propDict["performedBy"] = new Identity($this->_propDict["performedBy"]); return $this->_propDict["performedBy"]; } } return null; } /** * Sets the performedBy * Represents an identity used to identify who is responsible for the activity. * * @param Identity $val The performedBy * * @return ExternalActivity */ public function setPerformedBy($val) { $this->_propDict["performedBy"] = $val; return $this; } }