setType() setType(string $type) : $this Set the type for this aggregation. Parameters string $type the child type the buckets in the parent space should be mapped to Returns $this