39 lines
838 B
PHP
Executable File
39 lines
838 B
PHP
Executable File
<?php
|
|
|
|
namespace Noodlehaus;
|
|
|
|
/**
|
|
* Config interface
|
|
*
|
|
* @package Config
|
|
* @author Jesus A. Domingo <jesus.domingo@gmail.com>
|
|
* @author Hassan Khan <contact@hassankhan.me>
|
|
* @link https://github.com/noodlehaus/config
|
|
* @license MIT
|
|
*/
|
|
interface ConfigInterface
|
|
{
|
|
/**
|
|
* Gets a configuration setting using a simple or nested key.
|
|
* Nested keys are similar to JSON paths that use the dot
|
|
* dot notation.
|
|
*
|
|
* @param string $key
|
|
* @param mixed $default
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function get($key, $default = null);
|
|
|
|
/**
|
|
* Function for setting configuration values, using
|
|
* either simple or nested keys.
|
|
*
|
|
* @param string $key
|
|
* @param mixed $value
|
|
*
|
|
* @return void
|
|
*/
|
|
public function set($key, $value);
|
|
}
|