{{ " $this->_{{ column.name.camel_lower }}{{ loop.last ? "" : "," }} {% endfor %} ); } public static function jsonDeserialize($json) { $dbo = new {{ dbo_name.camel_upper }}(); {% for column in columns %} $dbo->set{{ column.name.camel_upper }}($json["{{ column.name.camel_upper }}"]); {% endfor %} return $dbo; } public static function generateSample() { $dbo = new {{ dbo_name.camel_upper }}(); {% for column in columns %} $dbo->set{{ column.name.camel_upper }}({% if column.data_type.php.as_it == "double" %}42.42{% elseif column.data_type.php.as_it == "integer" %}42{% elseif column.data_type.php.as_it == "boolean" %}true{% else %}"sample string"{% endif %}); {% endfor %} return $dbo; } {% for column in columns %} /** * @var {{ column.data_type.php.as_it }} */ protected $_{{ column.name.camel_lower }}; public function get{{ column.name.camel_upper }}() { return $this->_{{ column.name.camel_lower }}; } public function set{{ column.name.camel_upper }}($value) { $this->_{{ column.name.camel_lower }} = $value; } {% endfor %} }