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() ¶
Edit.php
:
30
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$payment | PaymentInterface | - | - |
getFunction() ¶
Edit.php
:
40
|
|
Return values
string
getModule() ¶
Edit.php
:
35
|
|
Return values
string
getObject() ¶
Edit.php
:
45
|
|
Return values
object|null
getTargets() ¶
Edit.php
:
50
|
|
Return values
array<string|int, ValueObject>