From 3ce2109a868dbd3ee363948e932f93efd9352c8a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 9 Nov 2022 23:02:52 +0100 Subject: [PATCH] reduce serialization of null models --- Models/NullNavElement.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Models/NullNavElement.php b/Models/NullNavElement.php index 24b5eb5..7c662ea 100755 --- a/Models/NullNavElement.php +++ b/Models/NullNavElement.php @@ -35,4 +35,12 @@ final class NullNavElement extends NavElement { $this->id = $id; } + + /** + * {@inheritdoc} + */ + public function jsonSerialize() : mixed + { + return ['id' => $this->id]; + } }