File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ class Person implements MongoDB\BSON\Persistable
8
8
private \MongoDB \BSON \ObjectId $ id ;
9
9
private \MongoDB \BSON \UTCDateTime $ createdAt ;
10
10
11
- public function __construct (private string $ name ) {
11
+ public function __construct (private string $ name )
12
+ {
12
13
$ this ->id = new \MongoDB \BSON \ObjectId ();
13
14
$ this ->createdAt = new \MongoDB \BSON \UTCDateTime ();
14
15
}
Original file line number Diff line number Diff line change 30
30
31
31
$ decodedJson = json_decode ($ ejsonStr , true );
32
32
print_r ($ decodedJson );
33
- // end-read-extended
33
+ // end-read-extended
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ public function __construct(private $stream)
39
39
{
40
40
}
41
41
42
- public function serverOpening (MongoDB \Driver \Monitoring \ServerOpeningEvent $ event ): void {
42
+ public function serverOpening (MongoDB \Driver \Monitoring \ServerOpeningEvent $ event ): void
43
+ {
43
44
fprintf (
44
45
$ this ->stream ,
45
46
'Server opening on %s:%s\n ' ,
You can’t perform that action at this time.
0 commit comments