Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NCU): removing all @since #49636

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/unstable/Config/Exceptions/IncorrectTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

/**
* @experimental 31.0.0
* @since 31.0.0
*/
class IncorrectTypeException extends Exception {
}
1 change: 0 additions & 1 deletion lib/unstable/Config/Exceptions/TypeConflictException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

/**
* @experimental 31.0.0
* @since 31.0.0
*/
class TypeConflictException extends Exception {
}
1 change: 0 additions & 1 deletion lib/unstable/Config/Exceptions/UnknownKeyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

/**
* @experimental 31.0.0
* @since 31.0.0
*/
class UnknownKeyException extends Exception {
}
43 changes: 0 additions & 43 deletions lib/unstable/Config/IUserConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@
* during specific requests or actions to avoid loading the lazy values all the time.
*
* @experimental 31.0.0
* @since 31.0.0
*/
interface IUserConfig {
/**
* @experimental 31.0.0
* @since 31.0.0
*/
public const FLAG_SENSITIVE = 1; // value is sensitive
/**
* @experimental 31.0.0
* @since 31.0.0
*/
public const FLAG_INDEXED = 2; // value should be indexed

Expand All @@ -53,7 +50,6 @@ interface IUserConfig {
* @return list<string> list of userIds
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getUserIds(string $appId = ''): array;

Expand All @@ -68,7 +64,6 @@ public function getUserIds(string $appId = ''): array;
* @return list<string> list of app ids
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getApps(string $userId): array;

Expand All @@ -84,7 +79,6 @@ public function getApps(string $userId): array;
* @return list<string> list of stored config keys
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getKeys(string $userId, string $app): array;

Expand All @@ -99,7 +93,6 @@ public function getKeys(string $userId, string $app): array;
* @return bool TRUE if key exists
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function hasKey(string $userId, string $app, string $key, ?bool $lazy = false): bool;

Expand All @@ -115,7 +108,6 @@ public function hasKey(string $userId, string $app, string $key, ?bool $lazy = f
* @throws UnknownKeyException if config key is not known
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function isSensitive(string $userId, string $app, string $key, ?bool $lazy = false): bool;

Expand All @@ -136,7 +128,6 @@ public function isSensitive(string $userId, string $app, string $key, ?bool $laz
* @throws UnknownKeyException if config key is not known
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function isIndexed(string $userId, string $app, string $key, ?bool $lazy = false): bool;

Expand All @@ -154,7 +145,6 @@ public function isIndexed(string $userId, string $app, string $key, ?bool $lazy
* @see IUserConfig for details about lazy loading
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function isLazy(string $userId, string $app, string $key): bool;

Expand All @@ -172,7 +162,6 @@ public function isLazy(string $userId, string $app, string $key): bool;
* @return array<string, string|int|float|bool|array> [key => value]
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getValues(string $userId, string $app, string $prefix = '', bool $filtered = false): array;

Expand All @@ -188,7 +177,6 @@ public function getValues(string $userId, string $app, string $prefix = '', bool
* @return array<string, string|int|float|bool|array> [key => value]
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getAllValues(string $userId, bool $filtered = false): array;

Expand All @@ -204,7 +192,6 @@ public function getAllValues(string $userId, bool $filtered = false): array;
* @return array<string, string|int|float|bool|array> [appId => value]
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getValuesByApps(string $userId, string $key, bool $lazy = false, ?ValueType $typedAs = null): array;

Expand All @@ -222,7 +209,6 @@ public function getValuesByApps(string $userId, string $key, bool $lazy = false,
* @return array<string, string|int|float|bool|array> [userId => value]
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getValuesByUsers(string $app, string $key, ?ValueType $typedAs = null, ?array $userIds = null): array;

Expand All @@ -240,7 +226,6 @@ public function getValuesByUsers(string $app, string $key, ?ValueType $typedAs =
* @return Generator<string>
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function searchUsersByValueString(string $app, string $key, string $value, bool $caseInsensitive = false): Generator;

Expand All @@ -257,7 +242,6 @@ public function searchUsersByValueString(string $app, string $key, string $value
* @return Generator<string>
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function searchUsersByValueInt(string $app, string $key, int $value): Generator;

Expand All @@ -274,7 +258,6 @@ public function searchUsersByValueInt(string $app, string $key, int $value): Gen
* @return Generator<string>
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function searchUsersByValues(string $app, string $key, array $values): Generator;

Expand All @@ -291,7 +274,6 @@ public function searchUsersByValues(string $app, string $key, array $values): Ge
* @return Generator<string>
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function searchUsersByValueBool(string $app, string $key, bool $value): Generator;

Expand All @@ -309,7 +291,6 @@ public function searchUsersByValueBool(string $app, string $key, bool $value): G
* @return string stored config value or $default if not set in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserConfig for explanation about lazy loading
* @see getValueInt()
Expand All @@ -333,7 +314,6 @@ public function getValueString(string $userId, string $app, string $key, string
* @return int stored config value or $default if not set in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserConfig for explanation about lazy loading
* @see getValueString()
Expand All @@ -357,7 +337,6 @@ public function getValueInt(string $userId, string $app, string $key, int $defau
* @return float stored config value or $default if not set in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserConfig for explanation about lazy loading
* @see getValueString()
Expand All @@ -381,7 +360,6 @@ public function getValueFloat(string $userId, string $app, string $key, float $d
* @return bool stored config value or $default if not set in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserPrefences for explanation about lazy loading
* @see getValueString()
Expand All @@ -405,7 +383,6 @@ public function getValueBool(string $userId, string $app, string $key, bool $def
* @return array stored config value or $default if not set in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserConfig for explanation about lazy loading
* @see getValueString()
Expand All @@ -431,7 +408,6 @@ public function getValueArray(string $userId, string $app, string $key, array $d
* @throws IncorrectTypeException if config value type is not known
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getValueType(string $userId, string $app, string $key, ?bool $lazy = null): ValueType;

Expand All @@ -451,7 +427,6 @@ public function getValueType(string $userId, string $app, string $key, ?bool $la
* @throws IncorrectTypeException if config value type is not known
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getValueFlags(string $userId, string $app, string $key, bool $lazy = false): int;

Expand All @@ -473,7 +448,6 @@ public function getValueFlags(string $userId, string $app, string $key, bool $la
* @return bool TRUE if value was different, therefor updated in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserConfig for explanation about lazy loading
* @see setValueInt()
Expand Down Expand Up @@ -506,7 +480,6 @@ public function setValueString(string $userId, string $app, string $key, string
* @return bool TRUE if value was different, therefor updated in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserConfig for explanation about lazy loading
* @see setValueString()
Expand Down Expand Up @@ -534,7 +507,6 @@ public function setValueInt(string $userId, string $app, string $key, int $value
* @return bool TRUE if value was different, therefor updated in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserConfig for explanation about lazy loading
* @see setValueString()
Expand All @@ -561,7 +533,6 @@ public function setValueFloat(string $userId, string $app, string $key, float $v
* @return bool TRUE if value was different, therefor updated in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserConfig for explanation about lazy loading
* @see setValueString()
Expand Down Expand Up @@ -589,7 +560,6 @@ public function setValueBool(string $userId, string $app, string $key, bool $val
* @return bool TRUE if value was different, therefor updated in database
*
* @experimental 31.0.0
* @since 31.0.0
*
* @see IUserConfig for explanation about lazy loading
* @see setValueString()
Expand All @@ -612,7 +582,6 @@ public function setValueArray(string $userId, string $app, string $key, array $v
* @return bool TRUE if database update were necessary
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function updateSensitive(string $userId, string $app, string $key, bool $sensitive): bool;

Expand All @@ -626,7 +595,6 @@ public function updateSensitive(string $userId, string $app, string $key, bool $
* @param bool $sensitive TRUE to set as sensitive, FALSE to unset
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function updateGlobalSensitive(string $app, string $key, bool $sensitive): void;

Expand All @@ -644,7 +612,6 @@ public function updateGlobalSensitive(string $app, string $key, bool $sensitive)
* @return bool TRUE if database update were necessary
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function updateIndexed(string $userId, string $app, string $key, bool $indexed): bool;

Expand All @@ -658,7 +625,6 @@ public function updateIndexed(string $userId, string $app, string $key, bool $in
* @param bool $indexed TRUE to set as indexed, FALSE to unset
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function updateGlobalIndexed(string $app, string $key, bool $indexed): void;

Expand All @@ -673,7 +639,6 @@ public function updateGlobalIndexed(string $app, string $key, bool $indexed): vo
* @return bool TRUE if database update was necessary
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function updateLazy(string $userId, string $app, string $key, bool $lazy): bool;

Expand All @@ -687,7 +652,6 @@ public function updateLazy(string $userId, string $app, string $key, bool $lazy)
* @param bool $lazy TRUE to set as lazy loaded, FALSE to unset
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function updateGlobalLazy(string $app, string $key, bool $lazy): void;

Expand All @@ -714,7 +678,6 @@ public function updateGlobalLazy(string $app, string $key, bool $lazy): void;
* @throws UnknownKeyException if config key is not known in database
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function getDetails(string $userId, string $app, string $key): array;

Expand All @@ -726,7 +689,6 @@ public function getDetails(string $userId, string $app, string $key): array;
* @param string $key config key
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function deleteUserConfig(string $userId, string $app, string $key): void;

Expand All @@ -737,7 +699,6 @@ public function deleteUserConfig(string $userId, string $app, string $key): void
* @param string $key config key
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function deleteKey(string $app, string $key): void;

Expand All @@ -747,7 +708,6 @@ public function deleteKey(string $app, string $key): void;
* @param string $app id of the app
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function deleteApp(string $app): void;

Expand All @@ -757,7 +717,6 @@ public function deleteApp(string $app): void;
* @param string $userId id of the user
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function deleteAllUserConfig(string $userId): void;

Expand All @@ -770,7 +729,6 @@ public function deleteAllUserConfig(string $userId): void;
* @param bool $reload set to TRUE to refill cache instantly after clearing it
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function clearCache(string $userId, bool $reload = false): void;

Expand All @@ -779,7 +737,6 @@ public function clearCache(string $userId, bool $reload = false): void;
* The cache will be rebuilt only the next time a user config is requested.
*
* @experimental 31.0.0
* @since 31.0.0
*/
public function clearCacheAll(): void;
}
Loading
Loading