<?php

namespace KupShop\FeedsBundle\Wrapper;

use KupShop\I18nBundle\Util\PriceConverter;
use KupShop\KupShopBundle\Context\CurrencyContext;

class PricelistWrapperFactory implements IWrapperFactory
{
    /** @var CurrencyContext */
    protected $currencyContext;

    /** @var PriceConverter */
    protected $priceConverter;

    public function __construct(CurrencyContext $currencyContext, PriceConverter $priceConverter)
    {
        $this->currencyContext = $currencyContext;
        $this->priceConverter = $priceConverter;
    }

    public function create(): BaseWrapper
    {
        return new PricelistWrapper($this->currencyContext, $this->priceConverter);
    }
}
