Skip to content

Commit e1cac1d

Browse files
committed
Releasing 1.1.7
2 parents 6b00e12 + 86df3b8 commit e1cac1d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/TgUtils/SelfJsonEncoder.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)