<?php
namespace Modules\NsGastro\Listeners;

use App\Events\OrderProductBeforeCreatedEvent;
use App\Events\OrderProductBeforeSavedEvent;
use Modules\NsGastro\Services\GastroOrderService;

class OrderProductBeforeSavedEventListener
{
    public function __construct( public GastroOrderService $gastroOrderService )
    {
        
    }

    /**
     * @todo that evenis no longer supported
     * we need to provide an alternative way of filling product details
     */
    public function handle( OrderProductBeforeCreatedEvent $event )
    {
        // ...
    }
}