reduce serialization of null models

This commit is contained in:
Dennis Eichhorn 2022-11-09 23:02:52 +01:00
parent 9dad1dc011
commit 149896a220
2 changed files with 16 additions and 0 deletions

View File

@ -44,4 +44,12 @@ final class NullTask extends Task
{
return ['id' => $this->id];
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return ['id' => $this->id];
}
}

View File

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