Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
natxet committed Feb 26, 2012
1 parent e6582a2 commit d923dd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Config.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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. * 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 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 ) public function __construct( $environment, $file )
{ {
if ( empty( $file ) ) if ( empty( $file ) )
{ {
throw new PHPConfigException( 'A file handler is needed.' ); throw new PHPConfigException( 'A file handler is needed.' );
} }

$this->environment = $environment ; $this->environment = $environment ;
$this->config_values = $file->requireFile(); $this->config_values = $file->requireFile();
$this->calculated_values = $this->getConfigFromEnvironment( $environment ); $this->calculated_values = $this->getConfigFromEnvironment( $environment );
Expand Down Expand Up @@ -73,7 +73,7 @@ private function getConfigFromEnvironment( $environment )


/** /**
* It returns the requested config key. * 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 * @return mixed The config value
*/ */
public function get( $config_key ) public function get( $config_key )
Expand All @@ -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.