Copied!

Delete

Delete.php : 26
Implements PolicyInterface

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
See
PermissionResolverInterface

Methods

public__construct()

Delete.php : 30
public __construct(PaymentInterface $payment)

Parameters

Name Type Default value Description
$payment PaymentInterface - -

publicgetFunction()

Delete.php : 40
public getFunction() : string

Return values

string

publicgetModule()

Delete.php : 35
public getModule() : string

Return values

string

publicgetObject()

Delete.php : 45
public getObject() : object|null

Return values

object|null

publicgetTargets()

Delete.php : 50
public getTargets() : array<string|int, ValueObject>

Return values

array<string|int, ValueObject>