_propDict)) { return $this->_propDict["address"]; } else { return null; } } /** * Sets the address * The email address itself. * * @param string $val The address * * @return ItemEmail */ public function setAddress($val) { $this->_propDict["address"] = $val; return $this; } /** * Gets the displayName * The name or label a user has associated with a particular email address. * * @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 * The name or label a user has associated with a particular email address. * * @param string $val The displayName * * @return ItemEmail */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the type * The type of email address. Possible values are: unknown, work, personal, main, other. * * @return EmailType|null The type */ public function getType() { if (array_key_exists("type", $this->_propDict)) { if (is_a($this->_propDict["type"], "\Beta\Microsoft\Graph\Model\EmailType") || is_null($this->_propDict["type"])) { return $this->_propDict["type"]; } else { $this->_propDict["type"] = new EmailType($this->_propDict["type"]); return $this->_propDict["type"]; } } return null; } /** * Sets the type * The type of email address. Possible values are: unknown, work, personal, main, other. * * @param EmailType $val The type * * @return ItemEmail */ public function setType($val) { $this->_propDict["type"] = $val; return $this; } }