<?php

namespace App\Listeners;

use App\Modules\Stock\Modix;

class AddModixDealershipFields
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct(private Modix $modix)
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return array
     */
    public function handle($event)
    {
        if ($this->modix->enabled() == false) {
            return [];
        }
        return $this->modix->dealershipAdditionalDataFields();
    }
}
