src/Event/ProductVariantSpecificationMenuBuilderEvent.php line 10

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace App\Event;
  3. use App\Entity\Product\ProductVariantSpecificationInterface;
  4. use Knp\Menu\FactoryInterface;
  5. use Knp\Menu\ItemInterface;
  6. use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
  7. final class ProductVariantSpecificationMenuBuilderEvent extends MenuBuilderEvent
  8. {
  9.     /** @var ProductVariantSpecificationInterface */
  10.     private $productVariantSpecification;
  11.     public function __construct(FactoryInterface $factoryItemInterface $menuProductVariantSpecificationInterface $productVariantSpecification)
  12.     {
  13.         parent::__construct($factory$menu);
  14.         $this->productVariantSpecification $productVariantSpecification;
  15.     }
  16.     public function getCustomerOption(): ProductVariantSpecificationInterface
  17.     {
  18.         return $this->productVariantSpecification;
  19.     }
  20. }