MediaWiki REL1_40
ConfigBuilder.php
Go to the documentation of this file.
1<?php
2
4
5use Config;
7
13interface 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
65 public function get( string $key );
66
72 public function build(): Config;
73}
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.