File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
templates/cli/lib/type-generation/languages Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ class PHP extends LanguageMeta {
40
40
return `<?php
41
41
namespace Appwrite\\Models ;
42
42
43
- use Appwrite\\Models\\Document ;
44
-
45
- class < %- toPascalCase(collection . name ) % > extends Document {
43
+ class < %- toPascalCase(collection . name ) % > {
46
44
< % for (const attribute of collection . attributes ){ -% >
47
45
public < %- getType (attribute ) % > $< %- toCamelCase(attribute . key ) % > ;
48
46
< % } -% >
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ import Codable
42
42
43
43
public class <% - toPascalCase(collection.name) %> : Codable {
44
44
<% for (const attribute of collection.attributes) { -%>
45
- public var <% - toCamelCase(attribute.key) %> : <% - getType(attribute) %>
45
+ public let <% - toCamelCase(attribute.key) %> : <% - getType(attribute) %>
46
46
<% } %>
47
47
enum CodingKeys: String, CodingKey {
48
48
<% for (const attribute of collection.attributes) { -%>
You can’t perform that action at this time.
0 commit comments