Debian Codegraph @

includes/Settings/Source/ArraySource.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Settings\Source;
4
5 use Stringable;
6
7 /**
8 * Settings loaded from an array.
9 *
10 * @since 1.38
11 */
12 class ArraySource implements Stringable, SettingsSource {
13 private array $settings;
14
15 public function __construct( array $settings ) {
16 $this->settings = $settings;
17 }
18
19 public function load(): array {
20 return $this->settings;
21 }
22
23 public function __toString(): string {
24 return '<array>';
25 }
26 }