|
|
@ -126,8 +126,8 @@ class Runtime |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Sets a value in the Vars bag |
|
|
|
* Sets a value in the Vars bag |
|
|
|
* |
|
|
|
* |
|
|
|
* @param mixed $key Variable name |
|
|
|
* @param string $key Variable name |
|
|
|
* @param mixed $value Variable value |
|
|
|
* @param string $value Variable value |
|
|
|
* @return Runtime |
|
|
|
* @return Runtime |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function setVar($key, $value) |
|
|
|
public function setVar($key, $value) |
|
|
@ -139,9 +139,9 @@ class Runtime |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Retrieve a value from the Vars bag |
|
|
|
* Retrieve a value from the Vars bag |
|
|
|
* |
|
|
|
* |
|
|
|
* @param mixed $key Variable name |
|
|
|
* @param string $key Variable name |
|
|
|
* @param mixed $default Variable default value, returned if not found |
|
|
|
* @param string $default Variable default value, returned if not found |
|
|
|
* @return mixed |
|
|
|
* @return string |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getVar($key, $default = null) |
|
|
|
public function getVar($key, $default = null) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -207,7 +207,7 @@ class Runtime |
|
|
|
* If $key is provided, it will be returned only that section, if not found the default value will be returned, |
|
|
|
* If $key is provided, it will be returned only that section, if not found the default value will be returned, |
|
|
|
* if $key is not provided, the whole Environment's configuration will be returned |
|
|
|
* if $key is not provided, the whole Environment's configuration will be returned |
|
|
|
* |
|
|
|
* |
|
|
|
* @param mixed $key Section name |
|
|
|
* @param string $key Section name |
|
|
|
* @param mixed $default Default value |
|
|
|
* @param mixed $default Default value |
|
|
|
* @return mixed |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
*/ |
|
|
|