| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function __construct(Cursor $cursor, string $class, ODMInterface $odm) |
||
| 44 | { |
||
| 45 | //Ensuring cursor fetch types |
||
| 46 | $cursor->setTypeMap([ |
||
| 47 | 'root' => 'array', |
||
| 48 | 'document' => 'array', |
||
| 49 | 'array' => 'array' |
||
| 50 | ]); |
||
| 51 | |||
| 52 | parent::__construct($cursor); |
||
| 53 | |||
| 54 | $this->class = $class; |
||
| 55 | $this->odm = $odm; |
||
| 56 | } |
||
| 57 | |||
| 88 | } |