Browse Source

Add docblocks

Jordi Boggiano 13 years ago
parent
commit
28d0f4a7c8
1 changed files with 17 additions and 0 deletions
  1. 17 0
      src/Composer/Config.php

+ 17 - 0
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);