@@ -7,6 +7,9 @@ |
||
7 | 7 | |
8 | 8 | class Application |
9 | 9 | { |
10 | + /** |
|
11 | + * @param string $root |
|
12 | + */ |
|
10 | 13 | function __construct($root) |
11 | 14 | { |
12 | 15 | $container = $this->container = new Container; |
@@ -19,6 +19,9 @@ discard block |
||
19 | 19 | return is_dir($path) || file_exists($path); |
20 | 20 | } |
21 | 21 | |
22 | + /** |
|
23 | + * @return string |
|
24 | + */ |
|
22 | 25 | function getPath() |
23 | 26 | { |
24 | 27 | if (func_get_args()) { |
@@ -60,6 +63,9 @@ discard block |
||
60 | 63 | return $classes; |
61 | 64 | } |
62 | 65 | |
66 | + /** |
|
67 | + * @param string $location |
|
68 | + */ |
|
63 | 69 | function listFiles($location) |
64 | 70 | { |
65 | 71 | $absolute = $this->getPath($location); |
@@ -84,6 +90,9 @@ discard block |
||
84 | 90 | return $result; |
85 | 91 | } |
86 | 92 | |
93 | + /** |
|
94 | + * @param string $namespace |
|
95 | + */ |
|
87 | 96 | function completeClassName($namespace) |
88 | 97 | { |
89 | 98 | $config = $this->app->get(Config::class); |