aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Settings/Source/ArraySource.php
blob: eed59495dfae81c5d51cae56d534eb220d36ff2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace MediaWiki\Settings\Source;

/**
 * Settings loaded from an array.
 *
 * @since 1.38
 */
class ArraySource implements SettingsSource {
	private $settings;

	public function __construct( array $settings ) {
		$this->settings = $settings;
	}

	public function load(): array {
		return $this->settings;
	}

	public function __toString(): string {
		return '<array>';
	}
}