Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
57 lines (50 sloc)
1.13 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Config; | |
interface Repository | |
{ | |
/** | |
* Determine if the given configuration value exists. | |
* | |
* @param string $key | |
* @return bool | |
*/ | |
public function has($key); | |
/** | |
* Get the specified configuration value. | |
* | |
* @param array|string $key | |
* @param mixed $default | |
* @return mixed | |
*/ | |
public function get($key, $default = null); | |
/** | |
* Get all of the configuration items for the application. | |
* | |
* @return array | |
*/ | |
public function all(); | |
/** | |
* Set a given configuration value. | |
* | |
* @param array|string $key | |
* @param mixed $value | |
* @return void | |
*/ | |
public function set($key, $value = null); | |
/** | |
* Prepend a value onto an array configuration value. | |
* | |
* @param string $key | |
* @param mixed $value | |
* @return void | |
*/ | |
public function prepend($key, $value); | |
/** | |
* Push a value onto an array configuration value. | |
* | |
* @param string $key | |
* @param mixed $value | |
* @return void | |
*/ | |
public function push($key, $value); | |
} |