Copied!

View

View.php : 27
Final
Implements PolicyInterface

Policy used to check if a payment can be viewed.

The following example demonstrates how to assert the policy using PermissionResolverInterface:

$this->permissionResolver->assertPolicy(new View($payment));
Tags
See
PermissionResolverInterface

Methods

public__construct()

View.php : 31
public __construct([PaymentInterface|null $payment = null ])

Parameters

Name Type Default value Description
$payment PaymentInterface|null null -

publicgetFunction()

View.php : 41
public getFunction() : string

Return values

string

publicgetModule()

View.php : 36
public getModule() : string

Return values

string

publicgetObject()

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

Return values

object|null

publicgetTargets()

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

Return values

array<string|int, ValueObject>