aboutsummaryrefslogtreecommitdiff
path: root/template/php/snip-getter-setter.php
blob: 0881fd61b1d01a053ca1c36a862e670a68a4bc4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * Get {{_input_:property}}
 *
 * @return {{_input_:type}}
 */
public function get{{_expr_:substitute('{{_var_:property}}', '\w\+', '\u\0', '')}}() {
	return $this->{{_var_:property}};
}

/**
 * Set {{_var_:property}}
 *
 * @param {{_var_:type}} {{_var_:property}}
 */
public function set{{_expr_:substitute('{{_var_:property}}', '\w\+', '\u\0', '')}}(${{_var_:property}}) {
	$this->{{_var_:property}} = ${{_var_:property}};
}