mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-10 22:08:40 +00:00
reduce serialization of null models
This commit is contained in:
parent
974c3c91f6
commit
3ce2109a86
|
|
@ -35,4 +35,12 @@ final class NullNavElement extends NavElement
|
||||||
{
|
{
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function jsonSerialize() : mixed
|
||||||
|
{
|
||||||
|
return ['id' => $this->id];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user