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
Methods¶
__construct() ¶
View.php
:
30
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$payment | PaymentInterface|null | null | - |
getFunction() ¶
View.php
:
40
|
|
Return values
string
getModule() ¶
View.php
:
35
|
|
Return values
string
getObject() ¶
View.php
:
45
|
|
Return values
object|null
getTargets() ¶
View.php
:
50
|
|
Return values
array<string|int, ValueObject>