Copied!

Create

Create.php : 26
Implements PolicyInterface

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
See
PermissionResolverInterface

Methods

public__construct()

Create.php : 30
public __construct(PaymentCreateStruct|null $createStruct)

Parameters

Name Type Default value Description
$createStruct PaymentCreateStruct|null - -

publicgetFunction()

Create.php : 40
public getFunction() : string

Return values

string

publicgetModule()

Create.php : 35
public getModule() : string

Return values

string

publicgetObject()

Create.php : 50
public getObject() : PaymentCreateStruct|null

Return values

PaymentCreateStruct|null

publicgetTargets()

Create.php : 45
public getTargets() : array<string|int, ValueObject>

Return values

array<string|int, ValueObject>