From 28d0f4a7c8b03c869492791f456b10a187ce5495 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 9 Apr 2012 16:13:46 +0200 Subject: [PATCH] Add docblocks --- src/Composer/Config.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Composer/Config.php b/src/Composer/Config.php index b161739c3..a052f60e4 100644 --- a/src/Composer/Config.php +++ b/src/Composer/Config.php @@ -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);