_propDict)) { if (is_a($this->_propDict["type"], "\Microsoft\Graph\ExternalConnectors\Model\IdentityType") || is_null($this->_propDict["type"])) { return $this->_propDict["type"]; } else { $this->_propDict["type"] = new IdentityType($this->_propDict["type"]); return $this->_propDict["type"]; } } return null; } /** * Sets the type * The type of identity. Possible values are: user or group for Microsoft Entra identities and externalgroup for groups in an external system. * * @param IdentityType $val The type * * @return Identity */ public function setType($val) { $this->_propDict["type"] = $val; return $this; } }