reduce serialization of null models

This commit is contained in:
Dennis Eichhorn 2022-11-09 23:02:52 +01:00
parent f4bbcc5215
commit 08e4fa6c0f
4 changed files with 32 additions and 0 deletions

View File

@ -36,4 +36,12 @@ final class NullEditorDoc extends EditorDoc
$this->id = $id;
parent::__construct();
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return ['id' => $this->id];
}
}

View File

@ -36,4 +36,12 @@ final class NullEditorDocHistory extends EditorDocHistory
$this->id = $id;
parent::__construct();
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return ['id' => $this->id];
}
}

View File

@ -36,4 +36,12 @@ final class NullEditorDocType extends EditorDocType
$this->id = $id;
parent::__construct();
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return ['id' => $this->id];
}
}

View File

@ -36,4 +36,12 @@ final class NullEditorDocTypeL11n extends EditorDocTypeL11n
$this->id = $id;
parent::__construct();
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return ['id' => $this->id];
}
}