diff options
Diffstat (limited to 'template/php/snip-getter.php')
-rw-r--r-- | template/php/snip-getter.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/template/php/snip-getter.php b/template/php/snip-getter.php index b27b2ea..1b5c924 100644 --- a/template/php/snip-getter.php +++ b/template/php/snip-getter.php @@ -1,7 +1,8 @@ /** - * get {{_input_:name}} - * @return {{_var_:name}} + * Get {{_input_:property}} + * + * @return {{_input_:type}} */ -public {{_input_:type}} get{{_expr_:substitute('{{_var_:name}}', '\w\+', '\u\0', '')}}() { - return {{_var_:name}}; +public function get{{_expr_:substitute('{{_var_:property}}', '\w\+', '\u\0', '')}}() { + return $this->{{_var_:property}}; } |