<?php
/**
 * Interface FormValidatorInterface.
 *
 * Defines the contract for form validators in Firevert.
 *
 * @package Ilabs\Firevert\Core\Form\Validation
 */

declare( strict_types=1 );

namespace Ilabs\Firevert\Core\Form\Validation;

/**
 * Interface FormValidatorInterface
 */
interface FormValidatorInterface {

	/**
	 * Validates provided form data.
	 *
	 * @param array<string, mixed> $data Submitted form data.
	 * @return ValidationResult Result of validation.
	 */
	public function validate( array $data ): ValidationResult;
}
