reduce serialization of null models

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

View File

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

View File

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