original_string: public function yieldLists(): \Generator
      {
          if (!isset($this->dataObjectFactory)) {
              throw new \LogicException('setDataObjectFactory must be called before calling nextList.');
          }
  
          if (!isset($this->objectListQuery)) {
              throw new \LogicException('setByFields must be called before calling nextList.');
          }
  
          // We need to yield ourselves first.
          $thisList = new Promise();
          $thisList->resolve($this);
          yield $thisList;
  
          $ranges = Range::nextRanges($this);
          foreach ($ranges as $range) {
              $byFields = clone $this->objectListQuery;
              $byFields->setRange($range);
              yield $this->dataObjectFactory->selectRequest($byFields);
          }
      }
code: public function yieldLists(): \Generator
      {
          if (!isset($this->dataObjectFactory)) {
              throw new \LogicException('setDataObjectFactory must be called before calling nextList.');
          }
  
          if (!isset($this->objectListQuery)) {
              throw new \LogicException('setByFields must be called before calling nextList.');
          }
  
          // We need to yield ourselves first.
          $thisList = new Promise();
          $thisList->resolve($this);
          yield $thisList;
  
          $ranges = Range::nextRanges($this);
          foreach ($ranges as $range) {
              $byFields = clone $this->objectListQuery;
              $byFields->setRange($range);
              yield $this->dataObjectFactory->selectRequest($byFields);
          }
      }
code_tokens: public function yieldLists ( ) : \ Generator { if ( ! isset ( $ this -> dataObjectFactory ) ) { throw new \ LogicException ( 'setDataObjectFactory must be called before calling nextList.' ) ; } if ( ! isset ( $ this -> objectListQuery ) ) { throw new \ LogicException ( 'setByFields must be called before calling nextList.' ) ; } // We need to yield ourselves first. $ thisList = new Promise ( ) ; $ thisList -> resolve ( $ this ) ; yield $ thisList ; $ ranges = Range :: nextRanges ( $ this ) ; foreach ( $ ranges as $ range ) { $ byFields = clone $ this -> objectListQuery ; $ byFields -> setRange ( $ range ) ; yield $ this -> dataObjectFactory -> selectRequest ( $ byFields ) ; } }
docstring: Yield select requests for all pages of this object list.
  
  @return \Generator A generator returning promises to object lists.
docstring_tokens: Yield select requests for all pages of this object list .