File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 3
3
namespace MongoDB \Codec ;
4
4
5
5
/**
6
+ * The Codec interface allows decoding BSON data to native PHP types and back
7
+ * to BSON.
8
+ *
6
9
* @psalm-template BSONType
7
10
* @psalm-template NativeType
8
11
* @template-extends Decoder<BSONType, NativeType>
Original file line number Diff line number Diff line change 5
5
use MongoDB \BSON \Document ;
6
6
7
7
/**
8
+ * The DocumentCodec interface allows decoding BSON document data to native PHP
9
+ * objects and back to BSON documents.
10
+ *
8
11
* @psalm-template ObjectType of object
9
12
* @template-extends Codec<Document, ObjectType>
10
13
*/
Original file line number Diff line number Diff line change 2
2
3
3
namespace MongoDB \Codec ;
4
4
5
+ /**
6
+ * This interface is used to indicate that a class is aware of the CodecLibrary
7
+ * it was added to. The library will be injected when the codec is added to the
8
+ * library. This allows codecs to recursively encode its nested values.
9
+ */
5
10
interface KnowsCodecLibrary
6
11
{
7
12
public function attachLibrary (CodecLibrary $ library ): void ;
You can’t perform that action at this time.
0 commit comments