/** * @param OrderInterface $order * * @return bool */ public function supports(OrderInterface $order) { return 0 == $order->getTotalAmount()->getValue() && 0 < $order->getProductCollection()->count(); }