name]; if ($part->columns !== null && count($part->columns) > 0) { $ctePart[] = ' (' . implode(', ', $part->columns) . ')'; } $ctePart[] = ' AS (' . $part->query . ')'; $cteParts[] = implode('', $ctePart); } return 'WITH ' . implode(', ', $cteParts); } }