<?php

namespace CouponsPlus\App\Conditions\Stubs\Offers;

use CouponsPlus\Original\Collections\Collection;
use CouponsPlus\App\Coupon\Abilities\DashboardCardData;

class PricePerItem implements DashboardCardData
{
    const TYPE = 'PricePerItem';
    protected string $uniqueKey;

    public static function getName() : string
    {
        return __('Price per Item', 'coupons-plus-for-woocommerce');
    }

    public static function getDescription() : string
    {
        return __('Applies a cart discount to make each matching item effectively cost the specified price, without changing the item\'s actual price. For example: Items costing $10 each with a set Price per Item of $8 will get a $2 discount per item. If the customer adds 3 of these items, a $6 discount would be applied, making each item effectively cost $8.', 'coupons-plus-for-woocommerce');
    }

    static public function getUseCases(): Collection
    {
        return new Collection([
            __('Restrict offers to customers registered in a specific date range.', 'coupons-plus-for-woocommerce'),
        ]);
    }

    static public function getNotes() : array
    {
        return [
        ];
    }
}
