Doctrine\ODM\MongoDB\CommandCursor::__construct PHP Метод

__construct() публичный Метод

public __construct ( Doctrine\MongoDB\CommandCursor $commandCursor, UnitOfWork $unitOfWork, ClassMetadata $class = null )
$commandCursor Doctrine\MongoDB\CommandCursor The ComamndCursor instance being wrapped
$unitOfWork UnitOfWork
$class Doctrine\ODM\MongoDB\Mapping\ClassMetadata The class to use for hydration or null if results should not be hydrated
    public function __construct(BaseCommandCursor $commandCursor, UnitOfWork $unitOfWork, ClassMetadata $class = null)
    {
        $this->commandCursor = $commandCursor;
        $this->unitOfWork = $unitOfWork;
        $this->class = $class;
    }