reduce serialization of null models

This commit is contained in:
Dennis Eichhorn 2022-11-09 23:02:52 +01:00
parent 974c3c91f6
commit 3ce2109a86

View File

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