12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace Symfony\Component\VarDumper\Caster;
- use Symfony\Component\VarDumper\Cloner\Stub;
- class MongoCaster
- {
- public static function castCursor(\MongoCursorInterface $cursor, array $a, Stub $stub, $isNested)
- {
- if ($info = $cursor->info()) {
- foreach ($info as $k => $v) {
- $a[Caster::PREFIX_VIRTUAL.$k] = $v;
- }
- }
- $a[Caster::PREFIX_VIRTUAL.'dead'] = $cursor->dead();
- return $a;
- }
- }
|