_propDict)) { return $this->_propDict["interval"]; } else { return null; } } /** * Sets the interval * * @param string $val The value of the interval * * @return RetentionSetting */ public function setInterval($val) { $this->_propDict["interval"] = $val; return $this; } /** * Gets the period * * @return \DateInterval|null The period */ public function getPeriod() { if (array_key_exists("period", $this->_propDict)) { if (is_a($this->_propDict["period"], "\DateInterval") || is_null($this->_propDict["period"])) { return $this->_propDict["period"]; } else { $this->_propDict["period"] = new \DateInterval($this->_propDict["period"]); return $this->_propDict["period"]; } } return null; } /** * Sets the period * * @param \DateInterval $val The value to assign to the period * * @return RetentionSetting The RetentionSetting */ public function setPeriod($val) { $this->_propDict["period"] = $val; return $this; } }