forked from loafle/openapi-generator-original
PHP Models: updating the models generated for PHP styling
This commit is contained in:
parent
6ca34e362d
commit
0854ca5ce5
@ -37,7 +37,8 @@ class {{classname}} implements ArrayAccess {
|
|||||||
public ${{name}}; /* {{{datatype}}} */{{/vars}}
|
public ${{name}}; /* {{{datatype}}} */{{/vars}}
|
||||||
|
|
||||||
public function __construct(array $data) {
|
public function __construct(array $data) {
|
||||||
{{#vars}}$this->{{name}} = $data["{{name}}"]{{/vars}}
|
{{#vars}}$this->{{name}} = $data["{{name}}"];{{#hasMore}},
|
||||||
|
{{/hasMore}}{{/vars}}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function offsetExists($offset) {
|
public function offsetExists($offset) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user