public function addSubQuery(
        string $name,
        Query $query
    ): self {
        $this->subqueries[$name] = $query;

        return $this;
    }
public function addSubQuery(
        string $name,
        Query $query
    ): self {
        $this->subqueries[$name] = $query;

        return $this;
    }
public function addSubQuery ( string $ name , Query $ query ) : self { $ this -> subqueries [ $ name ] = $ query ; return $ this ; }
Add subquery.

@param string $name
@param Query  $query

@return Query
Add subquery .