public function canBeApplied(
        CartInterface $cart,
        CouponInterface $coupon
    ) {
        return
            $coupon->getType() === self::id() &&
            1 === preg_match($this->regexp(), $coupon->getValue());
    }
public function canBeApplied(
        CartInterface $cart,
        CouponInterface $coupon
    ) {
        return
            $coupon->getType() === self::id() &&
            1 === preg_match($this->regexp(), $coupon->getValue());
    }
public function canBeApplied ( CartInterface $ cart , CouponInterface $ coupon ) { return $ coupon -> getType ( ) === self :: id ( ) && 1 === preg_match ( $ this -> regexp ( ) , $ coupon -> getValue ( ) ) ; }
Can be applied.

@param CartInterface   $cart   Cart
@param CouponInterface $coupon Coupon

@return bool Can be applied
Can be applied .