Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
38 | public function selectCollection($collectionName, array $options = []) |
||
39 | { |
||
40 | $debug = $this->__debugInfo(); |
||
41 | $options += [ |
||
42 | 'readConcern' => $debug['readConcern'], |
||
43 | 'readPreference' => $debug['readPreference'], |
||
44 | 'typeMap' => $debug['typeMap'], |
||
45 | 'writeConcern' => $debug['writeConcern'], |
||
46 | ]; |
||
47 | |||
48 | return new Collection($debug['manager'], $debug['databaseName'], $collectionName, $options, $this->logger); |
||
49 | } |
||
50 | } |
||
51 |