2016-08-04 14:55:37 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Ion
|
|
|
|
*
|
|
|
|
* Building blocks for web development
|
|
|
|
*
|
|
|
|
* @package Ion
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2015 - 2016
|
|
|
|
* @license MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Aviat\Ion;
|
|
|
|
|
2016-08-05 16:20:26 -04:00
|
|
|
/**
|
|
|
|
* Standard interface for retrieving/setting configuration values
|
|
|
|
*/
|
2016-08-04 14:55:37 -04:00
|
|
|
interface ConfigInterface {
|
|
|
|
/**
|
|
|
|
* Get a config value
|
|
|
|
*
|
|
|
|
* @param array|string $key
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function get($key);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set a config value
|
|
|
|
*
|
|
|
|
* @param integer|string|array $key
|
2016-08-26 17:21:50 -04:00
|
|
|
* @param mixed $value
|
2016-08-04 14:55:37 -04:00
|
|
|
* @throws \InvalidArgumentException
|
|
|
|
* @return ConfigInterface
|
|
|
|
*/
|
|
|
|
public function set($key, $value);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove a config value
|
|
|
|
*
|
|
|
|
* @param string|array $key
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function delete($key);
|
|
|
|
}
|