<?php

namespace CouponsPlus\App\Coupon\Columns\OfferColumns;

use CouponsPlus\App\Conditions\ItemsSet;
use CouponsPlus\App\Coupon\CartComponentsSet;
use CouponsPlus\App\Coupon\Column;
use CouponsPlus\App\Coupon\Columns\OfferColumns\Meta\OnlyOffersColumnMeta;
use CouponsPlus\App\Coupon\Columns\OfferColumns\Meta\SimpleOfferColumnMeta;
use CouponsPlus\App\Coupon\Columns\SimpleColumn;
use CouponsPlus\App\Coupon\Meta\ColumnMeta;

#[\AllowDynamicProperties]
Class OnlyOffersColumn extends Column
{
    const TYPE = 'OnlyOffers';

    public static function getColumnMeta() : ColumnMeta
    {
        return new OnlyOffersColumnMeta;
    }

    /**
     * This column will always apply offers, no need to add any conditions or filters*
     *
     * *except for Preconditions and classic WooCommerce conditionals
     */
    public function findOffers(ItemsSet $itemsSet): CartComponentsSet
    {
        return $itemsSet;
    }  
}