Skip to content

Commit 2fe40d2

Browse files
committed
Use native types for DocumentCodec interface
1 parent 5f530b9 commit 2fe40d2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Codec/DocumentCodec.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,16 @@
2525
*/
2626
interface DocumentCodec extends Codec
2727
{
28+
/**
29+
* @param mixed $value
30+
* @psalm-param Document $value
31+
* @psalm-return ObjectType
32+
*/
33+
public function decode($value): object;
34+
35+
/**
36+
* @param mixed $value
37+
* @psalm-param ObjectType $value
38+
*/
39+
public function encode($value): Document;
2840
}

0 commit comments

Comments
 (0)