<?php

namespace CouponsPlus\App\Coupon\Tree\Factories;

use CouponsPlus\App\Coupon\Tree\Abilities\TestableData;
use CouponsPlus\App\Coupon\Tree\Abilities\FilterableGroup;
use CouponsPlus\App\Coupon\Tree\Abilities\TestableGroupData;

interface FilterableGroupFactoryInterface
{
    /**
     * @param string $type
     * @param TestableGroupData|TestableData $testableGroupData
     * @return FilterableGroup
     */
    public function create(string $type, $testableGroupData): FilterableGroup;
}
