From 0854ca5ce53b159d92f1672d53a100a8c15e080d Mon Sep 17 00:00:00 2001 From: James Ebentier Date: Fri, 13 Mar 2015 09:23:55 -0700 Subject: [PATCH] PHP Models: updating the models generated for PHP styling --- modules/swagger-codegen/src/main/resources/php/model.mustache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/resources/php/model.mustache b/modules/swagger-codegen/src/main/resources/php/model.mustache index 6de69cbafdd..606203f8940 100644 --- a/modules/swagger-codegen/src/main/resources/php/model.mustache +++ b/modules/swagger-codegen/src/main/resources/php/model.mustache @@ -37,7 +37,8 @@ class {{classname}} implements ArrayAccess { public ${{name}}; /* {{{datatype}}} */{{/vars}} public function __construct(array $data) { - {{#vars}}$this->{{name}} = $data["{{name}}"]{{/vars}} + {{#vars}}$this->{{name}} = $data["{{name}}"];{{#hasMore}}, + {{/hasMore}}{{/vars}} } public function offsetExists($offset) {