OSDN Git Service

Document Config class
authormalukenho <admin@phpse.net>
Sat, 10 Jan 2015 09:35:13 +0000 (06:35 -0300)
committermalukenho <admin@phpse.net>
Sat, 31 Jan 2015 09:35:13 +0000 (06:35 -0300)
src/PHPRouter/Config.php
tests/Fixtures/SomeController.php [moved from tests/SomeController.php with 100% similarity]
tests/PHPRouter/RouterTest.php [moved from tests/RouterTest.php with 100% similarity]

index 5f06e16..d3ef79e 100644 (file)
@@ -19,8 +19,26 @@ namespace PHPRouter;
 
 use Symfony\Component\Yaml\Yaml;
 
-class Config
+/**
+ * Auxiliary Config class, to parse a Yaml file.
+ *
+ * @author Jefersson Nathan <malukenho@phpse.net>
+ * @package PHPRouter
+ */
+final class Config
 {
+    /**
+     * Avoid instantiation.
+     */
+    private function __construct()
+    {
+    }
+
+    /**
+     * @param string $yamlFile file location.
+     *
+     * @return mixed[]
+     */
     public static function loadFromFile($yamlFile)
     {
         try {