Logical OR criterion.
The following requests payment methods with ID equals to 42, 43 or 45, or an identifier equals to 'paypal', 'payu', or 'stripe':
$query = new PaymentMethodQuery();
$query->setQuery(new LogicalOr([
    new Id([42, 43, 45]),
    new Identifier(['paypal', 'payu', 'stripe']),
]));
$paymentMethods = $paymentMethodService->findPaymentMethods($query);
    Tags
Methods¶
                
__construct()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        16
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $criteria | CriterionInterface | - | - | 
                
add()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        21
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $criteria | CriterionInterface | - | - | 
                
getCriteria()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        47
                
    
        | 
                     | 
                
                    
                     | 
            
Return values
array<string|int, CriterionInterface>
                
remove()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        29
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $criteria | CriterionInterface | - | - | 
                
setCriteria()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        39
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $criteria | CriterionInterface | - | - |