Repository.php
54 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Contracts\Config; |
| 4 | |
| 5 | /** @internal */ |
| 6 | interface Repository |
| 7 | { |
| 8 | /** |
| 9 | * Determine if the given configuration value exists. |
| 10 | * |
| 11 | * @param string $key |
| 12 | * @return bool |
| 13 | */ |
| 14 | public function has($key); |
| 15 | /** |
| 16 | * Get the specified configuration value. |
| 17 | * |
| 18 | * @param array|string $key |
| 19 | * @param mixed $default |
| 20 | * @return mixed |
| 21 | */ |
| 22 | public function get($key, $default = null); |
| 23 | /** |
| 24 | * Get all of the configuration items for the application. |
| 25 | * |
| 26 | * @return array |
| 27 | */ |
| 28 | public function all(); |
| 29 | /** |
| 30 | * Set a given configuration value. |
| 31 | * |
| 32 | * @param array|string $key |
| 33 | * @param mixed $value |
| 34 | * @return void |
| 35 | */ |
| 36 | public function set($key, $value = null); |
| 37 | /** |
| 38 | * Prepend a value onto an array configuration value. |
| 39 | * |
| 40 | * @param string $key |
| 41 | * @param mixed $value |
| 42 | * @return void |
| 43 | */ |
| 44 | public function prepend($key, $value); |
| 45 | /** |
| 46 | * Push a value onto an array configuration value. |
| 47 | * |
| 48 | * @param string $key |
| 49 | * @param mixed $value |
| 50 | * @return void |
| 51 | */ |
| 52 | public function push($key, $value); |
| 53 | } |
| 54 |