Skip to content
Browse files

Documentation fixes

  • Loading branch information...
1 parent e6582a2 commit d923dd9bb709004b6701dae96049ed69cec5c0e0 @natxet committed Feb 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Config.php
View
8 src/Config.php
@@ -33,15 +33,15 @@ class Config
* It includes the config file with the config values, and save them in the calculated_values property, taking care of inheritance.
*
* @param string $environment The environment where you are in.
- * @param object $file A file handler to work with the filesystem.
+ * @param File $file A file handler to work with the filesystem.
*/
public function __construct( $environment, $file )
{
if ( empty( $file ) )
{
throw new PHPConfigException( 'A file handler is needed.' );
}
-
+
$this->environment = $environment ;
$this->config_values = $file->requireFile();
$this->calculated_values = $this->getConfigFromEnvironment( $environment );
@@ -73,7 +73,7 @@ private function getConfigFromEnvironment( $environment )
/**
* It returns the requested config key.
- * @param string $config_value Which config key you want to know the value
+ * @param string $config_key Which config key you want to know the value
* @return mixed The config value
*/
public function get( $config_key )
@@ -86,4 +86,4 @@ public function get( $config_key )
}
}
-class PHPConfigException extends \Exception {}
+class PHPConfigException extends \Exception {}

0 comments on commit d923dd9

Please sign in to comment.
Something went wrong with that request. Please try again.