Copied!

AbstractVoter

AbstractVoter.php : 14
Implements VoterInterface

Methods

publicvote()

AbstractVoter.php : 16

Returns true if the payment method is available for the given cart, false otherwise.

public vote(PaymentMethodInterface $method, CartInterface $cart) : bool

Parameters

Name Type Default value Description
$method PaymentMethodInterface - -
$cart CartInterface - -

Return values

bool

protectedgetVote()

AbstractVoter.php : 21
protected abstract getVote(PaymentMethodInterface $method, CartInterface $cart) : bool

Parameters

Name Type Default value Description
$method PaymentMethodInterface - -
$cart CartInterface - -

Return values

bool