File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
require __DIR__ . '/../vendor/autoload.php ' ;
16
16
17
- class TypemapEntry implements Unserializable
17
+ class TypeMapEntry implements Unserializable
18
18
{
19
19
/** @var ObjectId */
20
20
private $ id ;
21
21
22
22
/** @var string */
23
23
private $ name ;
24
24
25
- /** @var array<TypemapEmail > */
25
+ /** @var array<TypeMapEmail > */
26
26
private $ emails ;
27
27
28
28
private function __construct ()
@@ -62,7 +62,7 @@ public function bsonUnserialize(array $data): void
62
62
}
63
63
}
64
64
65
- class TypemapEmail implements Unserializable
65
+ class TypeMapEmail implements Unserializable
66
66
{
67
67
/** @var string */
68
68
private $ type ;
@@ -107,10 +107,10 @@ public function bsonUnserialize(array $data): void
107
107
$ collection ->insertOne ($ document );
108
108
109
109
$ typeMap = [
110
- 'root ' => TypemapEntry ::class, // Root object will be an Entry instance
110
+ 'root ' => TypeMapEntry ::class, // Root object will be an Entry instance
111
111
'fieldPaths ' => [
112
112
'emails ' => 'array ' , // Emails field is used as PHP array
113
- 'emails.$ ' => TypemapEmail ::class, // Each element in the emails array will be an Email instance
113
+ 'emails.$ ' => TypeMapEmail ::class, // Each element in the emails array will be an Email instance
114
114
],
115
115
];
116
116
You can’t perform that action at this time.
0 commit comments