Mongolid\Cursor\Cursor::__construct PHP Method

__construct() public method

public __construct ( Schema $entitySchema, MongoDB\Collection $collection, string $command, array $params )
$entitySchema Mongolid\Schema\Schema Schema that describes the entity that will be retrieved from the database.
$collection MongoDB\Collection The raw collection object that will be used to retrieve the documents.
$command string The command that is being called in the $collection.
$params array The parameters of the $command.
    public function __construct(Schema $entitySchema, Collection $collection, string $command, array $params)
    {
        $this->cursor = null;
        $this->entitySchema = $entitySchema;
        $this->collection = $collection;
        $this->command = $command;
        $this->params = $params;
    }