Skip to content

Commit 5fc2914

Browse files
committed
Update docs
1 parent ac81f2e commit 5fc2914

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,13 @@ use Soap\Encoding\Encoder\XmlEncoder;
9595
use VeeWee\Reflecta\Iso\Iso;
9696

9797
/**
98-
* @implements XmlEncoder<string, MyClass>
98+
* @implements XmlEncoder<MyClass, string>
9999
*/
100100
class MySpecificTypeCEncoder implements XmlEncoder
101101
{
102+
/**
103+
* @return Iso<MyClass, string>
104+
*/
102105
public function iso(Context $context) : Iso
103106
{
104107
return new Iso(
@@ -108,3 +111,6 @@ class MySpecificTypeCEncoder implements XmlEncoder
108111
}
109112
}
110113
```
114+
115+
**Note: ** An encoder is considered to be isomorphic : When calling `from` and `to` on the `Iso` object, the data should be the same.
116+
More information about the concept [can be found here](https://github.com/veewee/reflecta/blob/main/docs/isomorphisms.md).

0 commit comments

Comments
 (0)