Copied!

Edit

Edit.php : 27
Final
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 : 31
public __construct(PaymentInterface $payment)

Parameters

Name Type Default value Description
$payment PaymentInterface - -

publicgetFunction()

Edit.php : 41
public getFunction() : string

Return values

string

publicgetModule()

Edit.php : 36
public getModule() : string

Return values

string

publicgetObject()

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

Return values

object|null

publicgetTargets()

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

Return values

array<string|int, ValueObject>