forked from loafle/openapi-generator-original
make setters fluent
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user