_propDict)) { return $this->_propDict["mailExchange"]; } else { return null; } } /** * Sets the mailExchange * Value used when configuring the answer/destination/value of the MX record at the DNS host. * * @param string $val The mailExchange * * @return DomainDnsMxRecord */ public function setMailExchange($val) { $this->_propDict["mailExchange"] = $val; return $this; } /** * Gets the preference * Value used when configuring the Preference/Priority property of the MX record at the DNS host. * * @return int|null The preference */ public function getPreference() { if (array_key_exists("preference", $this->_propDict)) { return $this->_propDict["preference"]; } else { return null; } } /** * Sets the preference * Value used when configuring the Preference/Priority property of the MX record at the DNS host. * * @param int $val The preference * * @return DomainDnsMxRecord */ public function setPreference($val) { $this->_propDict["preference"] = intval($val); return $this; } }