Policy used to check if a payment can be created.
The following example demonstrates how to assert the policy using PermissionResolverInterface:
$this->permissionResolver->assertPolicy(new Create($createStruct));
Tags
Methods¶
__construct() ¶
Create.php
:
30
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$createStruct | PaymentCreateStruct|null | - | - |
getFunction() ¶
Create.php
:
40
|
|
Return values
string
getModule() ¶
Create.php
:
35
|
|
Return values
string
getObject() ¶
Create.php
:
50
|
|
Return values
PaymentCreateStruct|null
getTargets() ¶
Create.php
:
45
|
|
Return values
array<string|int, ValueObject>