aboutsummaryrefslogtreecommitdiffstats
path: root/Model
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-01 17:28:57 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-01 17:28:57 +0100
commit057c5994422f58b329e63a0672da0f6f33e13355 (patch)
tree54d99ce355a9de88392eda03c16ca5b6674b7cfc /Model
parenteef88e7d2ba515667cc6a61102ecd2c6133cec54 (diff)
downloadPraspel-057c5994422f58b329e63a0672da0f6f33e13355.zip
Praspel-057c5994422f58b329e63a0672da0f6f33e13355.tar.gz
Praspel-057c5994422f58b329e63a0672da0f6f33e13355.tar.bz2
Add the addVariable() method.
Diffstat (limited to 'Model')
-rw-r--r--Model/Declaration.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/Model/Declaration.php b/Model/Declaration.php
index 28087ac..ffbf936 100644
--- a/Model/Declaration.php
+++ b/Model/Declaration.php
@@ -176,6 +176,19 @@ abstract class Declaration
}
/**
+ * Add a variable.
+ *
+ * @access public
+ * @param string $name Name.
+ * @param \Hoa\Praspel\Model\Variable $variable Variable.
+ * @return \Hoa\Praspel\Model\Variable
+ */
+ public function addVariable ( $name, Variable $variable ) {
+
+ return $this->_variables[$name] = $variable;
+ }
+
+ /**
* Set a value to a variable.
*
* @access public