<?php

namespace CouponsPlus\App\Coupon\Tree\Sets\Abilities;

use CouponsPlus\App\Conditions\CartItem;

interface CartItemValueStrategy
{
    /**
     * If null, comparison will be performed on integers.
     * @return int|null
     */
    public function getScale(): ?int;

    /**
     * @param CartItem $cartItem
     * @return float|int
     */
    public function getValue(CartItem $cartItem);

}