_propDict)) { if (is_a($this->_propDict["detail"], "\Beta\Microsoft\Graph\Model\PhysicalAddress") || is_null($this->_propDict["detail"])) { return $this->_propDict["detail"]; } else { $this->_propDict["detail"] = new PhysicalAddress($this->_propDict["detail"]); return $this->_propDict["detail"]; } } return null; } /** * Sets the detail * Details about the address itself. * * @param PhysicalAddress $val The detail * * @return ItemAddress */ public function setDetail($val) { $this->_propDict["detail"] = $val; return $this; } /** * Gets the displayName * Friendly name the user has assigned to this 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 * Friendly name the user has assigned to this address. * * @param string $val The displayName * * @return ItemAddress */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the geoCoordinates * The geocoordinates of the address. * * @return GeoCoordinates|null The geoCoordinates */ public function getGeoCoordinates() { if (array_key_exists("geoCoordinates", $this->_propDict)) { if (is_a($this->_propDict["geoCoordinates"], "\Beta\Microsoft\Graph\Model\GeoCoordinates") || is_null($this->_propDict["geoCoordinates"])) { return $this->_propDict["geoCoordinates"]; } else { $this->_propDict["geoCoordinates"] = new GeoCoordinates($this->_propDict["geoCoordinates"]); return $this->_propDict["geoCoordinates"]; } } return null; } /** * Sets the geoCoordinates * The geocoordinates of the address. * * @param GeoCoordinates $val The geoCoordinates * * @return ItemAddress */ public function setGeoCoordinates($val) { $this->_propDict["geoCoordinates"] = $val; return $this; } }