original_string: public function createCursor()
      {
          $cursor = $this->repository->getCollection()->find($this->criteria, $this->fields);
  
          if (null !== $this->sort) {
              $cursor->sort($this->sort);
          }
  
          if (null !== $this->limit) {
              $cursor->limit($this->limit);
          }
  
          if (null !== $this->skip) {
              $cursor->skip($this->skip);
          }
  
          if (null !== $this->batchSize) {
              $cursor->batchSize($this->batchSize);
          }
  
          if (null !== $this->hint) {
              $cursor->hint($this->hint);
          }
  
          if (null !== $this->slaveOkay) {
              $cursor->slaveOkay($this->slaveOkay);
          }
  
          if ($this->snapshot) {
              $cursor->snapshot();
          }
  
          if (null !== $this->timeout) {
              $cursor->timeout($this->timeout);
          }
  
          return $cursor;
      }
code: public function createCursor()
      {
          $cursor = $this->repository->getCollection()->find($this->criteria, $this->fields);
  
          if (null !== $this->sort) {
              $cursor->sort($this->sort);
          }
  
          if (null !== $this->limit) {
              $cursor->limit($this->limit);
          }
  
          if (null !== $this->skip) {
              $cursor->skip($this->skip);
          }
  
          if (null !== $this->batchSize) {
              $cursor->batchSize($this->batchSize);
          }
  
          if (null !== $this->hint) {
              $cursor->hint($this->hint);
          }
  
          if (null !== $this->slaveOkay) {
              $cursor->slaveOkay($this->slaveOkay);
          }
  
          if ($this->snapshot) {
              $cursor->snapshot();
          }
  
          if (null !== $this->timeout) {
              $cursor->timeout($this->timeout);
          }
  
          return $cursor;
      }
code_tokens: public function createCursor ( ) { $ cursor = $ this -> repository -> getCollection ( ) -> find ( $ this -> criteria , $ this -> fields ) ; if ( null !== $ this -> sort ) { $ cursor -> sort ( $ this -> sort ) ; } if ( null !== $ this -> limit ) { $ cursor -> limit ( $ this -> limit ) ; } if ( null !== $ this -> skip ) { $ cursor -> skip ( $ this -> skip ) ; } if ( null !== $ this -> batchSize ) { $ cursor -> batchSize ( $ this -> batchSize ) ; } if ( null !== $ this -> hint ) { $ cursor -> hint ( $ this -> hint ) ; } if ( null !== $ this -> slaveOkay ) { $ cursor -> slaveOkay ( $ this -> slaveOkay ) ; } if ( $ this -> snapshot ) { $ cursor -> snapshot ( ) ; } if ( null !== $ this -> timeout ) { $ cursor -> timeout ( $ this -> timeout ) ; } return $ cursor ; }
docstring: Create a cursor with the data of the query.
  
  @return \MongoCursor A cursor with the data of the query.
docstring_tokens: Create a cursor with the data of the query .