We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00571fe commit 86df3b8Copy full SHA for 86df3b8
1 file changed
src/TgUtils/SelfJsonEncoder.php
@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+namespace TgUtils;
4
5
+/**
6
+ * Interface that marks an object as self-encoding. Means it provides its own ways to encode, e.g.
7
+ * because it doesn't want to encode certain attributes.
8
+ */
9
+interface SelfJsonEncoder {
10
11
+ /**
12
+ * Self-encodes this object into JSON format.
13
+ * @return string the JSON representation.
14
15
+ public function json_encode();
16
17
+}
0 commit comments