aboutsummaryrefslogtreecommitdiffstats
path: root/lib/unstable/Config/Lexicon/ConfigLexiconStrictness.php
blob: 2ccd7bd265c1498ac5691c9d535e3241a4ed8929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?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
 * @deprecated 32.0.0  use \OCP\Config\Lexicon\Strictness
 * @see \OCP\Config\Lexicon\Strictness
 */
enum ConfigLexiconStrictness {
	/**
	 * @experimental 31.0.0
	 * @deprecated 32.0.0  use \OCP\Config\Lexicon\Strictness
	 * @see \OCP\Config\Lexicon\Strictness
	 */
	case IGNORE; // fully ignore
	/**
	 * @experimental 31.0.0
	 * @deprecated 32.0.0  use \OCP\Config\Lexicon\Strictness
	 * @see \OCP\Config\Lexicon\Strictness
	 */
	case NOTICE; // ignore and report
	/**
	 * @deprecated 32.0.0  use \OCP\Config\Lexicon\Strictness
	 * @see \OCP\Config\Lexicon\Strictness
	 * @experimental 31.0.0
	 */
	case WARNING; // silently block (returns $default) and report
	/**
	 * @experimental 31.0.0
	 * @deprecated 32.0.0  use \OCP\Config\Lexicon\Strictness
	 * @see \OCP\Config\Lexicon\Strictness
	 */
	case EXCEPTION; // block (throws exception) and report
}