<?php

namespace App\Listeners;

use App\Services\Pyxel;

class AddPyxelDealershipField
{
    public function __construct(private Pyxel $provider)
    {
        //
    }

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