public function requireIndexes($bool = true)
    {
        if (!$this->isQueryOrScan()) {
            //TODO: exception
        }

        if ($bool) {
            $this->queryClass = Query::class;
        } else {
            $this->queryClass = Scan::class;
        }

        return $this;
    }
public function requireIndexes($bool = true)
    {
        if (!$this->isQueryOrScan()) {
            //TODO: exception
        }

        if ($bool) {
            $this->queryClass = Query::class;
        } else {
            $this->queryClass = Scan::class;
        }

        return $this;
    }
public function requireIndexes ( $ bool = true ) { if ( ! $ this -> isQueryOrScan ( ) ) { //TODO: exception } if ( $ bool ) { $ this -> queryClass = Query :: class ; } else { $ this -> queryClass = Scan :: class ; } return $ this ; }
Set whether or not to require indexes.

@param bool $bool

@return $this
Set whether or not to require indexes .