<?php

namespace App\Listeners;

use App\Modules\Stock\KeyloopRev8;

class AddKeyloopRev8DealershipFields
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct(private KeyloopRev8 $keyloopRev8)
    {
        //
    }

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