Policy used to check if a payment can be deleted (`payment/delete`).
The following example demonstrates how to assert the policy using PermissionResolverInterface:
$this->permissionResolver->assertPolicy(new Delete($payment));
Tags
Methods¶
__construct()
¶
Delete.php
:
31
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $payment | PaymentInterface | - | - |
getFunction()
¶
Delete.php
:
41
|
|
|
Return values
string
getModule()
¶
Delete.php
:
36
|
|
|
Return values
string
getObject()
¶
Delete.php
:
46
|
|
|
Return values
object|null
getTargets()
¶
Delete.php
:
51
|
|
|
Return values
array<string|int, ValueObject>