_propDict)) { return $this->_propDict["createdBy"]; } else { return null; } } /** * Sets the createdBy * * @param string $val The createdBy * * @return ProtectionRule */ public function setCreatedBy($val) { $this->_propDict["createdBy"] = $val; return $this; } /** * Gets the createdDateTime * * @return \DateTime|null The createdDateTime */ public function getCreatedDateTime() { if (array_key_exists("createdDateTime", $this->_propDict)) { if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { return $this->_propDict["createdDateTime"]; } else { $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); return $this->_propDict["createdDateTime"]; } } return null; } /** * Sets the createdDateTime * * @param \DateTime $val The createdDateTime * * @return ProtectionRule */ public function setCreatedDateTime($val) { $this->_propDict["createdDateTime"] = $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 ProtectionRule */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the isEnabled * * @return bool|null The isEnabled */ public function getIsEnabled() { if (array_key_exists("isEnabled", $this->_propDict)) { return $this->_propDict["isEnabled"]; } else { return null; } } /** * Sets the isEnabled * * @param bool $val The isEnabled * * @return ProtectionRule */ public function setIsEnabled($val) { $this->_propDict["isEnabled"] = boolval($val); return $this; } /** * Gets the lastModifiedBy * * @return string|null The lastModifiedBy */ public function getLastModifiedBy() { if (array_key_exists("lastModifiedBy", $this->_propDict)) { return $this->_propDict["lastModifiedBy"]; } else { return null; } } /** * Sets the lastModifiedBy * * @param string $val The lastModifiedBy * * @return ProtectionRule */ public function setLastModifiedBy($val) { $this->_propDict["lastModifiedBy"] = $val; return $this; } /** * Gets the lastModifiedDateTime * * @return \DateTime|null The lastModifiedDateTime */ public function getLastModifiedDateTime() { if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { return $this->_propDict["lastModifiedDateTime"]; } else { $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); return $this->_propDict["lastModifiedDateTime"]; } } return null; } /** * Sets the lastModifiedDateTime * * @param \DateTime $val The lastModifiedDateTime * * @return ProtectionRule */ public function setLastModifiedDateTime($val) { $this->_propDict["lastModifiedDateTime"] = $val; return $this; } }