Policy used to check if a payment can be updated.
The following example demonstrates how to assert the policy using PermissionResolverInterface:
$this->permissionResolver->assertPolicy(new Edit($payment));
Tags
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        
        Edit.php
                :
        30
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $payment | PaymentInterface | - | - | 
                 getFunction()
            ¶
getFunction()
            ¶
    
        
        Edit.php
                :
        40
                 
    
        |  |  | 
Return values
string
                 getModule()
            ¶
getModule()
            ¶
    
        
        Edit.php
                :
        35
                 
    
        |  |  | 
Return values
string
                 getObject()
            ¶
getObject()
            ¶
    
        
        Edit.php
                :
        45
                 
    
        |  |  | 
Return values
object|null
                 getTargets()
            ¶
getTargets()
            ¶
    
        
        Edit.php
                :
        50
                 
    
        |  |  | 
Return values
array<string|int, ValueObject>