From 16520b48485d84fb4bbe6017d94f8e7e8ed07745 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/NullAudit.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Models/NullAudit.php b/Models/NullAudit.php index aaee01a..e953524 100755 --- a/Models/NullAudit.php +++ b/Models/NullAudit.php @@ -36,4 +36,12 @@ final class NullAudit extends Audit $this->id = $id; parent::__construct(); } + + /** + * {@inheritdoc} + */ + public function jsonSerialize() : mixed + { + return ['id' => $this->id]; + } }