_propDict)) { if (is_a($this->_propDict["date"], "\DateTime") || is_null($this->_propDict["date"])) { return $this->_propDict["date"]; } else { $this->_propDict["date"] = new \DateTime($this->_propDict["date"]); return $this->_propDict["date"]; } } return null; } /** * Sets the date * * @param \DateTime $val The date * * @return PersonAnnualEvent */ public function setDate($val) { $this->_propDict["date"] = $val; return $this; } /** * Gets the displayName * * @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 * * @param string $val The displayName * * @return PersonAnnualEvent */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the type * * @return PersonAnnualEventType|null The type */ public function getType() { if (array_key_exists("type", $this->_propDict)) { if (is_a($this->_propDict["type"], "\Beta\Microsoft\Graph\Model\PersonAnnualEventType") || is_null($this->_propDict["type"])) { return $this->_propDict["type"]; } else { $this->_propDict["type"] = new PersonAnnualEventType($this->_propDict["type"]); return $this->_propDict["type"]; } } return null; } /** * Sets the type * * @param PersonAnnualEventType $val The type * * @return PersonAnnualEvent */ public function setType($val) { $this->_propDict["type"] = $val; return $this; } }