You've already forked config
Herping the derp
This commit is contained in:
41
src/Parser/ParserInterface.php
Normal file
41
src/Parser/ParserInterface.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Siteworx\Config\Parser;
|
||||
|
||||
/**
|
||||
* Config file parser interface
|
||||
*
|
||||
* @package Config
|
||||
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
|
||||
* @author Hassan Khan <contact@hassankhan.me>
|
||||
* @author Filip Š <projects@filips.si>
|
||||
* @link https://github.com/noodlehaus/config
|
||||
* @license MIT
|
||||
*/
|
||||
interface ParserInterface
|
||||
{
|
||||
/**
|
||||
* Parses a configuration from file `$filename` and gets its contents as an array
|
||||
*
|
||||
* @param string $filename
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function parseFile(string $filename): array;
|
||||
|
||||
/**
|
||||
* Parses a configuration from string `$config` and gets its contents as an array
|
||||
*
|
||||
* @param string $config
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function parseString(string $config): array;
|
||||
|
||||
/**
|
||||
* Returns an array of allowed file extensions for this parser
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getSupportedExtensions(): array;
|
||||
}
|
||||
Reference in New Issue
Block a user