Skip to content

Commit

Permalink
Remove some ties
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Feb 19, 2018
1 parent 6e598ce commit fba729b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
49 changes: 46 additions & 3 deletions src/package/Contracts/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,53 @@
interface Config
{
/**
* Get a configu key.
* Determine if the given configuration value exists.
*
* @param $key
* @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);
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);
}
2 changes: 1 addition & 1 deletion src/package/Services/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use PragmaRX\Countries\Package\Contracts\Config as ConfigContract;

class Config implements ConfigContract
class Config
{
/**
* Configuration.
Expand Down

0 comments on commit fba729b

Please sign in to comment.