Copied!

Edit

Edit.php : 26
Implements PolicyInterface

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

Methods

public__construct()

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

Parameters

Name Type Default value Description
$payment PaymentInterface - -

publicgetFunction()

Edit.php : 40
public getFunction() : string

Return values

string

publicgetModule()

Edit.php : 35
public getModule() : string

Return values

string

publicgetObject()

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

Return values

object|null

publicgetTargets()

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

Return values

array<string|int, ValueObject>