list = $list; } /** * Check whether payment method is applicable to quote * * @param MethodInterface $paymentMethod * @param \Magento\Quote\Model\Quote $quote * @return bool */ public function isApplicable(MethodInterface $paymentMethod, Quote $quote) { foreach ($this->list as $specification) { if (!$specification->isApplicable($paymentMethod, $quote)) { return false; } } return true; } }