_propDict)) { if (is_a($this->_propDict["assignmentMethod"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\AssignmentMethod") || is_null($this->_propDict["assignmentMethod"])) { return $this->_propDict["assignmentMethod"]; } else { $this->_propDict["assignmentMethod"] = new AssignmentMethod($this->_propDict["assignmentMethod"]); return $this->_propDict["assignmentMethod"]; } } return null; } /** * Sets the assignmentMethod * Describes whether the label was applied by an automated (standard) process or a person (privileged). * * @param AssignmentMethod $val The value to assign to the assignmentMethod * * @return ContentLabel The ContentLabel */ public function setAssignmentMethod($val) { $this->_propDict["assignmentMethod"] = $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 value to assign to the createdDateTime * * @return ContentLabel The ContentLabel */ public function setCreatedDateTime($val) { $this->_propDict["createdDateTime"] = $val; return $this; } /** * Gets the sensitivityLabelId * * @return string|null The sensitivityLabelId */ public function getSensitivityLabelId() { if (array_key_exists("sensitivityLabelId", $this->_propDict)) { return $this->_propDict["sensitivityLabelId"]; } else { return null; } } /** * Sets the sensitivityLabelId * * @param string $val The value of the sensitivityLabelId * * @return ContentLabel */ public function setSensitivityLabelId($val) { $this->_propDict["sensitivityLabelId"] = $val; return $this; } }