Page MenuHomeWickedGov Phorge

SettingsFormat.php
No OneTemporary

Size
770 B
Referenced Files
None
Subscribers
None

SettingsFormat.php

<?php
namespace MediaWiki\Settings\Source\Format;
use Stringable;
use UnexpectedValueException;
/**
* A SettingsFormat is meant to detect supported file types and/or decode
* source contents into settings arrays.
*
* @since 1.38
* @stable to implement
*/
interface SettingsFormat extends Stringable {
/**
* Decodes the given settings data and returns an associative array.
*
* @param string $data Settings data.
*
* @return array
* @throws UnexpectedValueException
*/
public function decode( string $data ): array;
/**
* Whether or not the format claims to support a file with the given
* extension.
*
* @param string $ext File extension.
*
* @return bool
*/
public static function supportsFileExtension( string $ext ): bool;
}

File Metadata

Mime Type
text/x-php
Expires
Aug 18 2026, 10:09 (6 w, 19 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
45/55/32ada645960c90289c08a85b2246
Default Alt Text
SettingsFormat.php (770 B)

Event Timeline