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