Skip to content

Commit 6a35604

Browse files
committed
chore: added PhpDocs
1 parent a562c85 commit 6a35604

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Binary.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,33 @@
66

77
final class Binary
88
{
9+
/**
10+
* @see EncoderInterface
11+
*/
912
public static function encode(string $data): Encoder
1013
{
1114
return new Encoder($data);
1215
}
1316

17+
/**
18+
* @see DecoderInterface
19+
*/
1420
public static function decode(string $data): Decoder
1521
{
1622
return new Decoder($data);
1723
}
1824

25+
/**
26+
* @see Serializer::serialize()
27+
*/
1928
public static function serialize(mixed $data): string
2029
{
2130
return (new Serializer())->serialize(serializable: $data);
2231
}
2332

33+
/**
34+
* @see Serializer::unserialize()
35+
*/
2436
public static function unserialize(string $data): mixed
2537
{
2638
return (new Serializer())->unserialize(serialized: $data);

0 commit comments

Comments
 (0)