|
|
@ -23,6 +23,12 @@ class CfnppOptions implements IOptions |
|
|
|
$this->variables = []; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Set all variables. |
|
|
|
* |
|
|
|
* @param array<string,mixed> $variables |
|
|
|
* @return void |
|
|
|
*/ |
|
|
|
public function setVariables(array $variables): void |
|
|
|
{ |
|
|
|
$this->variables = $variables; |
|
|
@ -41,8 +47,8 @@ class CfnppOptions implements IOptions |
|
|
|
/** |
|
|
|
* Retrieve the value of a single variable. |
|
|
|
* |
|
|
|
* @param string $name |
|
|
|
* @throws Exception if variable does not exist |
|
|
|
* @param string $name |
|
|
|
* @throws \Exception if variable does not exist |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
public function getVariable(string $name) |
|
|
|