protected function sitesToQueue()
    {
        /** @var Connection $db */
        $db = $this->connection;

        $query = $db->executeQuery('SELECT siteID FROM Sites');
        while ($id = $query->fetchColumn()) {
            yield $id;
        }
    }
protected function sitesToQueue()
    {
        /** @var Connection $db */
        $db = $this->connection;

        $query = $db->executeQuery('SELECT siteID FROM Sites');
        while ($id = $query->fetchColumn()) {
            yield $id;
        }
    }
protected function sitesToQueue ( ) { /** @var Connection $db */ $ db = $ this -> connection ; $ query = $ db -> executeQuery ( 'SELECT siteID FROM Sites' ) ; while ( $ id = $ query -> fetchColumn ( ) ) { yield $ id ; } }
Get Sites to add to the queue.

@return \Iterator
Get Sites to add to the queue .