<?php

namespace App\Rules;

use Closure;
use Illuminate\Contracts\Validation\ValidationRule;
use Mtc\MercuryDataModels\Vehicle;

class AddOnIsApplicableToVehicle implements ValidationRule
{
    public function __construct(private readonly Vehicle $vehicle)
    {
    }

    /**
     * Run the validation rule.
     *
     * @param  \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString  $fail
     */
    public function validate(string $attribute, mixed $value, Closure $fail): void
    {
        // TODO
    }
}
