original_string: public function limit(int $amount)
      {
          $this->items = array_slice($this->items, 0, $amount);
  
          return $this;
      }
code: public function limit(int $amount)
      {
          $this->items = array_slice($this->items, 0, $amount);
  
          return $this;
      }
code_tokens: public function limit ( int $ amount ) { $ this -> items = array_slice ( $ this -> items , 0 , $ amount ) ; return $ this ; }
docstring: Limits the number of results returned.
  
  @param int $amount the number of results to return
  
  @return EmbeddedCursor returns this cursor
docstring_tokens: Limits the number of results returned .