<?php

namespace KupShop\FeedsBundle\Wrapper;

class PriceLevelsWrapperFactory implements IWrapperFactory
{
    protected \Product $product;

    public function create(): BaseWrapper
    {
        return (new PriceLevelWrapper())->setProduct($this->product);
    }

    public function setProduct(\Product $product): PriceLevelsWrapperFactory
    {
        $this->product = $product;

        return $this;
    }
}
