0
0
mirror of https://github.com/nextcloud/server.git synced 2024-12-30 17:08:35 +00:00
nextcloud_server/lib/unstable/Config/Lexicon/ConfigLexiconStrictness.php
Maxence Lange 815991741d fix(lexicon): renaming and minor fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-12-13 11:08:20 -01:00

31 lines
900 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace NCU\Config\Lexicon;
/**
* Strictness regarding using not-listed config keys
*
* - **ConfigLexiconStrictness::IGNORE** - fully ignore
* - **ConfigLexiconStrictness::NOTICE** - ignore and report
* - **ConfigLexiconStrictness::WARNING** - silently block (returns $default) and report
* - **ConfigLexiconStrictness::EXCEPTION** - block (throws exception) and report
*
* @experimental 31.0.0
*/
enum ConfigLexiconStrictness {
/** @experimental 31.0.0 */
case IGNORE; // fully ignore
/** @experimental 31.0.0 */
case NOTICE; // ignore and report
/** @experimental 31.0.0 */
case WARNING; // silently block (returns $default) and report
/** @experimental 31.0.0 */
case EXCEPTION; // block (throws exception) and report
}