Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
17 | public function selectCollection(string $collectionName, array $options = []) |
||
18 | { |
||
19 | $debug = $this->__debugInfo(); |
||
20 | $options += [ |
||
21 | 'readConcern' => $debug['readConcern'], |
||
22 | 'readPreference' => $debug['readPreference'], |
||
23 | 'typeMap' => $debug['typeMap'], |
||
24 | 'writeConcern' => $debug['writeConcern'], |
||
25 | ]; |
||
26 | |||
27 | return new Collection($debug['manager'], $debug['databaseName'], $collectionName, $options); |
||
28 | } |
||
29 | } |
||
30 |