_propDict)) { if (is_a($this->_propDict["errors"], "\Beta\Microsoft\Graph\Model\GenericError") || is_null($this->_propDict["errors"])) { return $this->_propDict["errors"]; } else { $this->_propDict["errors"] = new GenericError($this->_propDict["errors"]); return $this->_propDict["errors"]; } } return null; } /** * Sets the errors * Errors in the validation result of a customAuthenticationExtension. * * @param GenericError $val The value to assign to the errors * * @return AuthenticationConfigurationValidation The AuthenticationConfigurationValidation */ public function setErrors($val) { $this->_propDict["errors"] = $val; return $this; } /** * Gets the warnings * Warnings in the validation result of a customAuthenticationExtension. * * @return GenericError|null The warnings */ public function getWarnings() { if (array_key_exists("warnings", $this->_propDict)) { if (is_a($this->_propDict["warnings"], "\Beta\Microsoft\Graph\Model\GenericError") || is_null($this->_propDict["warnings"])) { return $this->_propDict["warnings"]; } else { $this->_propDict["warnings"] = new GenericError($this->_propDict["warnings"]); return $this->_propDict["warnings"]; } } return null; } /** * Sets the warnings * Warnings in the validation result of a customAuthenticationExtension. * * @param GenericError $val The value to assign to the warnings * * @return AuthenticationConfigurationValidation The AuthenticationConfigurationValidation */ public function setWarnings($val) { $this->_propDict["warnings"] = $val; return $this; } }