<?php

namespace App\Listeners;

class AddKeyloopReservationDealershipFields
{
    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return array
     */
    public function handle($event)
    {
        return $this->dealershipAdditionalDataFields();
    }

    /**
     * Data fields to add to dealership
     *
     * @return array
     */
    public function dealershipAdditionalDataFields(): array
    {
        return [
            'keyloop-dealer-id' => [
                'type' => 'text',
                'label' => 'Dealer ID in Keyloop'
            ],
        ];
    }
}
