_propDict)) { return $this->_propDict["displayName"]; } else { return null; } } /** * Sets the displayName * The display name of the subject. * * @param string $val The displayName * * @return GovernanceSubject */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the email * The email address of the user subject. If the subject is in other types, it's empty. * * @return string|null The email */ public function getEmail() { if (array_key_exists("email", $this->_propDict)) { return $this->_propDict["email"]; } else { return null; } } /** * Sets the email * The email address of the user subject. If the subject is in other types, it's empty. * * @param string $val The email * * @return GovernanceSubject */ public function setEmail($val) { $this->_propDict["email"] = $val; return $this; } /** * Gets the principalName * The principal name of the user subject. If the subject is in other types, it's empty. * * @return string|null The principalName */ public function getPrincipalName() { if (array_key_exists("principalName", $this->_propDict)) { return $this->_propDict["principalName"]; } else { return null; } } /** * Sets the principalName * The principal name of the user subject. If the subject is in other types, it's empty. * * @param string $val The principalName * * @return GovernanceSubject */ public function setPrincipalName($val) { $this->_propDict["principalName"] = $val; return $this; } /** * Gets the type * The type of the subject. The value can be User, Group, and ServicePrincipal. * * @return string|null The type */ public function getType() { if (array_key_exists("type", $this->_propDict)) { return $this->_propDict["type"]; } else { return null; } } /** * Sets the type * The type of the subject. The value can be User, Group, and ServicePrincipal. * * @param string $val The type * * @return GovernanceSubject */ public function setType($val) { $this->_propDict["type"] = $val; return $this; } }