revisions complete
This commit is contained in:
@@ -11,7 +11,6 @@ class CollectionSchema implements Schema
|
||||
/**
|
||||
* @param Collection<FieldInterface> $fields
|
||||
* @param array<string> $visible
|
||||
* @param array<string> $fields
|
||||
*/
|
||||
function __construct(
|
||||
public string $name,
|
||||
@@ -22,6 +21,7 @@ class CollectionSchema implements Schema
|
||||
public bool $isEntry = false,
|
||||
public string $color = "",
|
||||
public string $titleTemplate = "",
|
||||
public int $revisions = 0,
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ class FilesSchema implements Schema
|
||||
public bool $isEntry = false,
|
||||
public string $color = "",
|
||||
public string $titleTemplate = "",
|
||||
public int $revisions = 0,
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ class SchemaService
|
||||
isEntry: $schemaArr["isEntry"] ?? false,
|
||||
color: $schemaArr["color"] ?? "",
|
||||
titleTemplate: $schemaArr["titleTemplate"] ?? "",
|
||||
revisions: $schemaArr["revisions"] ?? 0,
|
||||
),
|
||||
"files" => new FilesSchema(
|
||||
name: $schemaArr["name"],
|
||||
@@ -35,6 +36,7 @@ class SchemaService
|
||||
isEntry: $schemaArr["isEntry"] ?? false,
|
||||
color: $schemaArr["color"] ?? "",
|
||||
titleTemplate: $schemaArr["titleTemplate"] ?? "",
|
||||
revisions: $schemaArr["revisions"] ?? 0,
|
||||
),
|
||||
"block" => new BlockSchema(
|
||||
name: $schemaArr["name"],
|
||||
|
||||
Reference in New Issue
Block a user