Skip to content

Commit

Permalink
Version fix for page
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Nov 29, 2024
1 parent aa53e6f commit 3572969
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Db/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Page extends Entity implements JsonSerializable
{
// Basic page properties
protected ?string $uuid = null;
protected ?string $version = null;
protected ?string $name = null;
protected ?string $slug = null;
protected ?array $contents = null;
Expand All @@ -27,6 +28,7 @@ class Page extends Entity implements JsonSerializable
*/
public function __construct() {
$this->addType(fieldName: 'uuid', type: 'string');
$this->addType(fieldName: 'version', type: 'string');
$this->addType(fieldName: 'name', type: 'string');
$this->addType(fieldName: 'slug', type: 'string');
$this->addType(fieldName: 'contents', type: 'json');
Expand Down Expand Up @@ -92,6 +94,7 @@ public function jsonSerialize(): array
$array = [
'id' => $this->id,
'uuid' => $this->uuid,
'version' => $this->version,
'name' => $this->name,
'slug' => $this->slug,
'contents' => $this->contents,
Expand Down

0 comments on commit 3572969

Please sign in to comment.