Copied!

VoterRegistryInterface

VoterRegistryInterface.php : 16

Registry for payment method voters.

Tags
See
VoterInterface

Methods

publicgetVoter()

VoterRegistryInterface.php : 32

Returns voter for given payment method.

public getVoter(string $identifier) : VoterInterface

Parameters

Name Type Default value Description
$identifier string -

Payment method identifier

Return values

VoterInterface

Tags
Throws
InvalidArgumentException

If the voter is not found.

publichasVoter()

VoterRegistryInterface.php : 23

Checks if voter for given payment method exists.

public hasVoter(string $identifier) : bool

Parameters

Name Type Default value Description
$identifier string -

Payment method identifier

Return values

bool