1
0
Fork 0

Add docblocks

pull/551/head
Jordi Boggiano 2012-04-09 16:13:46 +02:00
parent e638182397
commit 28d0f4a7c8
1 changed files with 17 additions and 0 deletions

View File

@ -29,6 +29,11 @@ class Config
);
}
/**
* Merges new config values with the existing ones (overriding)
*
* @param array $config
*/
public function merge(array $config)
{
// override defaults with given config
@ -37,6 +42,12 @@ class Config
}
}
/**
* Returns a setting
*
* @param string $key
* @return mixed
*/
public function get($key)
{
switch ($key) {
@ -52,6 +63,12 @@ class Config
}
}
/**
* Checks whether a setting exists
*
* @param string $key
* @return Boolean
*/
public function has($key)
{
return array_key_exists($key, $this->config);