aboutsummaryrefslogtreecommitdiffstats
path: root/Model
diff options
context:
space:
mode:
Diffstat (limited to 'Model')
-rw-r--r--Model/Declaration.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/Model/Declaration.php b/Model/Declaration.php
index f8e121a..11c9e4e 100644
--- a/Model/Declaration.php
+++ b/Model/Declaration.php
@@ -143,6 +143,18 @@ abstract class Declaration
}
/**
+ * Alias of $this->offsetGet().
+ *
+ * @access public
+ * @param string $variable Variable name.
+ * @return \Hoa\Prasel\Model\Variable
+ */
+ public function getVariable ( $variable ) {
+
+ return $this->offsetGet($variable);
+ }
+
+ /**
* Iterator over local variables.
*
* @access public