<?php declare(strict_types=1);
namespace App\Event;
use App\Entity\Product\ProductVariantSpecificationInterface;
use Knp\Menu\FactoryInterface;
use Knp\Menu\ItemInterface;
use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
final class ProductVariantSpecificationMenuBuilderEvent extends MenuBuilderEvent
{
/** @var ProductVariantSpecificationInterface */
private $productVariantSpecification;
public function __construct(FactoryInterface $factory, ItemInterface $menu, ProductVariantSpecificationInterface $productVariantSpecification)
{
parent::__construct($factory, $menu);
$this->productVariantSpecification = $productVariantSpecification;
}
public function getCustomerOption(): ProductVariantSpecificationInterface
{
return $this->productVariantSpecification;
}
}