@@ -76,6 +76,9 @@ discard block |
||
| 76 | 76 | $this->reloadConfig(); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $locale |
|
| 81 | + */ |
|
| 79 | 82 | public function setLocale($locale) { |
| 80 | 83 | $this->locale = $locale; |
| 81 | 84 | $folder = \Tight\Utils::addTrailingSlash($this->config->resourceFolder); |
@@ -131,6 +134,9 @@ discard block |
||
| 131 | 134 | return $output; |
| 132 | 135 | } |
| 133 | 136 | |
| 137 | + /** |
|
| 138 | + * @param string $key |
|
| 139 | + */ |
|
| 134 | 140 | public function get($key) { |
| 135 | 141 | if (isset($this->values[$key])) { |
| 136 | 142 | return $this->values[$key]; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * Creates an instance of Tight Framework. |
| 67 | - * @param array $config Settings to override the config file |
|
| 67 | + * @param TightConfig $config Settings to override the config file |
|
| 68 | 68 | */ |
| 69 | 69 | public function __construct($config = []) { |
| 70 | 70 | // Sets the instance |