MediaWiki master
ConfigSchema.php
Go to the documentation of this file.
1<?php
3
5
11interface ConfigSchema {
12
18 public function getDefinedKeys(): array;
19
27 public function hasSchemaFor( string $key ): bool;
28
35 public function getDefaults(): array;
36
43 public function getDynamicDefaults(): array;
44
52 public function hasDefaultFor( string $key ): bool;
53
62 public function getDefaultFor( string $key );
63
72 public function getMergeStrategyFor( string $key ): ?MergeStrategy;
73}
Represents a config schema.
getMergeStrategyFor(string $key)
Get the merge strategy defined for the $key, or null if none defined.
hasDefaultFor(string $key)
Check if the $key has a default value set in the schema.
hasSchemaFor(string $key)
Check whether schema for $key is defined.
getDynamicDefaults()
Get all dynamic default declarations.
getDefaults()
Get all defined default values.
getDefinedKeys()
Get a list of all defined keys.
getDefaultFor(string $key)
Get the default value for the $key.