. */ declare(strict_types=1); namespace FireflyIII\Rules; use Illuminate\Contracts\Validation\ValidationRule; /** * TODO not sure where this is used. * * Class IsDuplicateTransaction */ class IsDuplicateTransaction implements ValidationRule { private string $value; /** * @SuppressWarnings("PHPMD.UnusedFormalParameter") */ public function validate(string $attribute, mixed $value, \Closure $fail): void { $this->value = $value; $fail($this->value); } }