Logical AND criterion.
The following example requests payment method enabled
- and having an identifier equals to 'paypal', 'payu', or 'stripe':
$query = new PaymentMethodQuery();
$query->setQuery(new LogicalAnd([
    new Enabled(),
    new Identifier(['paypal', 'payu', 'stripe']),
]));
$paymentMethods = $paymentMethodService->findPaymentMethods($query);
Tags
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        16
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $criteria | CriterionInterface | - | - | 
                 add()
            ¶
add()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        21
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $criteria | CriterionInterface | - | - | 
                 getCriteria()
            ¶
getCriteria()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        47
                 
    
        |  |  | 
Return values
array<string|int, CriterionInterface>
                 remove()
            ¶
remove()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        29
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $criteria | CriterionInterface | - | - | 
                 setCriteria()
            ¶
setCriteria()
            ¶
    
        
        AbstractCompositeCriterion.php
                :
        39
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $criteria | CriterionInterface | - | - |