The callback will receive 2 parameters, the first one is the value of the query
part that is being iterated and the second the name of such part.
### Example:
$query->select(['title'])->from('articles')->traverse(function ($value, $clause) {
if ($clause === 'select') {
var_dump($value);
}
}, ['select', 'from']);