mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 10:26:11 +00:00
PHP Models: updating the models generated for PHP styling
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user