make setters fluent

This commit is contained in:
nmonterroso
2015-06-19 10:31:05 -07:00
parent f9f58596b8
commit 5c409884b9

View File

@@ -62,9 +62,11 @@ class {{classname}} implements ArrayAccess {
/**
* set {{name}}
* @param {{datatype}} ${{name}}
* @return $this
*/
public function {{setter}}(${{name}}) {
$this->{{name}} = ${{name}};
return $this;
}
{{/vars}}
public function offsetExists($offset) {