_propDict)) { return $this->_propDict["isRegistrationRequired"]; } else { return null; } } /** * Sets the isRegistrationRequired * Determines if the user is enforced to register the authentication method. * * @param bool $val The isRegistrationRequired * * @return AuthenticationMethodTarget */ public function setIsRegistrationRequired($val) { $this->_propDict["isRegistrationRequired"] = boolval($val); return $this; } /** * Gets the targetType * Possible values are: user, group. * * @return AuthenticationMethodTargetType|null The targetType */ public function getTargetType() { if (array_key_exists("targetType", $this->_propDict)) { if (is_a($this->_propDict["targetType"], "\Microsoft\Graph\Model\AuthenticationMethodTargetType") || is_null($this->_propDict["targetType"])) { return $this->_propDict["targetType"]; } else { $this->_propDict["targetType"] = new AuthenticationMethodTargetType($this->_propDict["targetType"]); return $this->_propDict["targetType"]; } } return null; } /** * Sets the targetType * Possible values are: user, group. * * @param AuthenticationMethodTargetType $val The targetType * * @return AuthenticationMethodTarget */ public function setTargetType($val) { $this->_propDict["targetType"] = $val; return $this; } }