Copied!

View

View.php : 26
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 : 30
public __construct([PaymentInterface|null $payment = null ])

Parameters

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

publicgetFunction()

View.php : 40
public getFunction() : string

Return values

string

publicgetModule()

View.php : 35
public getModule() : string

Return values

string

publicgetObject()

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

Return values

object|null

publicgetTargets()

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

Return values

array<string|int, ValueObject>