MediaWiki  master
ConfigBuilder.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use Config;
7 
13 interface ConfigBuilder {
14 
23  public function set( string $key, $value, MergeStrategy $mergeStrategy = null ): ConfigBuilder;
24 
32  public function setMulti( array $values, array $mergeStrategies = [] ): ConfigBuilder;
33 
46  public function setDefault( string $key, $defaultValue, MergeStrategy $mergeStrategy = null ): ConfigBuilder;
47 
57  public function setMultiDefault( array $defaults, array $mergeStrategies ): ConfigBuilder;
58 
64  public function build(): Config;
65 }
Interface for configuration instances.
Definition: Config.php:30
setDefault(string $key, $defaultValue, MergeStrategy $mergeStrategy=null)
Set the default for the configuration $key to $defaultValue.
setMulti(array $values, array $mergeStrategies=[])
Set all values in the array.
build()
Build the resulting Config object.
setMultiDefault(array $defaults, array $mergeStrategies)
Set defaults in a batch.