From 4814b3098a993a888652aabebfbff6acb57fc0d6 Mon Sep 17 00:00:00 2001 From: Gregor Date: Tue, 30 Jul 2024 10:48:25 +0200 Subject: [PATCH] add common constructor to IJsonSerializable #12 --- src/Util/IJsonSerializable.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Util/IJsonSerializable.php b/src/Util/IJsonSerializable.php index 9c7c613..895abac 100644 --- a/src/Util/IJsonSerializable.php +++ b/src/Util/IJsonSerializable.php @@ -18,6 +18,11 @@ */ interface IJsonSerializable extends JsonSerializable { + /** + * @param array $array + */ + public function __construct(array $array); + /** * Decode a formerly JSON encoded object. * @param string $json JSON encoded object.