AggregationResultCollection
        AggregationResultCollection.php
                :
        17
                 
    
                                Final
                
        
                    
                Implements
                                    Countable,                                     IteratorAggregate                            
        
                Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        
        AggregationResultCollection.php
                :
        25
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $results | array<string|int, AggregationResult> | [] | - | 
                 count()
            ¶
count()
            ¶
    
        
        AggregationResultCollection.php
                :
        110
                 
    
        |  |  | 
Return values
int
                 first()
            ¶
first()
            ¶
    
        
        AggregationResultCollection.php
                :
        62
                 
    
        Return first element of collection.
|  |  | 
Return values
Tags
                 get()
            ¶
get()
            ¶
    
        
        AggregationResultCollection.php
                :
        38
                 
    
        This method returns the aggregation result for the given aggregation name.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $name | string | - | - | 
Return values
Tags
                 getIterator()
            ¶
getIterator()
            ¶
    
        
        AggregationResultCollection.php
                :
        105
                 
    
        |  |  | 
Return values
Iterator
                 has()
            ¶
has()
            ¶
    
        
        AggregationResultCollection.php
                :
        52
                 
    
        This method returns true if the aggregation result for the given aggregation name exists.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $name | string | - | - | 
Return values
bool
                 isEmpty()
            ¶
isEmpty()
            ¶
    
        
        AggregationResultCollection.php
                :
        90
                 
    
        Checks whether the collection is empty (contains no elements).
|  |  | 
Return values
bool
TRUE if the collection is empty, FALSE otherwise.
                 last()
            ¶
last()
            ¶
    
        
        AggregationResultCollection.php
                :
        76
                 
    
        Return last element of collection.
|  |  | 
Return values
Tags
                 toArray()
            ¶
toArray()
            ¶
    
        
        AggregationResultCollection.php
                :
        100
                 
    
        Gets a native PHP array representation of the collection.
|  |  | 
Return values
array<string|int, FieldDefinition>