Line 20 | Line 20 |
---|
{ /** * The configuration data
|
{ /** * The configuration data
|
* @var array(string => string)
| * @var array<string,string>
|
*/ protected $config;
/** * Creates a configuration container with a default set of values *
|
*/ protected $config;
/** * Creates a configuration container with a default set of values *
|
* @param array(string => string) $config The configuration data.
| * @param array<string,string> $config The configuration data.
|
*/ public function __construct(array $config) {
| */ public function __construct(array $config) {
|
Line 50 | Line 50 |
---|
* @param string $key The configuration option's name. * @return bool Whether the configuration option exists. */
|
* @param string $key The configuration option's name. * @return bool Whether the configuration option exists. */
|
| #[\ReturnTypeWillChange]
|
public function offsetExists($key) { return isset($this->config[$key]);
| public function offsetExists($key) { return isset($this->config[$key]);
|
Line 61 | Line 62 |
---|
* @param string $key The configuration option's name. * @return string The configuration value */
|
* @param string $key The configuration option's name. * @return string The configuration value */
|
| #[\ReturnTypeWillChange]
|
public function offsetGet($key) { return (isset($this->config[$key])) ? $this->config[$key] : '';
| public function offsetGet($key) { return (isset($this->config[$key])) ? $this->config[$key] : '';
|
Line 75 | Line 77 |
---|
* @param string $key The configuration option's name. * @param string $value The temporary value. */
|
* @param string $key The configuration option's name. * @param string $value The temporary value. */
|
| #[\ReturnTypeWillChange]
|
public function offsetSet($key, $value) { $this->config[$key] = $value;
| public function offsetSet($key, $value) { $this->config[$key] = $value;
|
Line 85 | Line 88 |
---|
* * @param string $key The configuration option's name. */
|
* * @param string $key The configuration option's name. */
|
| #[\ReturnTypeWillChange]
|
public function offsetUnset($key) { trigger_error('Config values have to be deleted explicitly with the \phpbb\config\config::delete($key) method.', E_USER_ERROR);
| public function offsetUnset($key) { trigger_error('Config values have to be deleted explicitly with the \phpbb\config\config::delete($key) method.', E_USER_ERROR);
|