<?php

namespace Velis\Mvc\Validators\Rules;

use Phalcon\Validation;

interface RuleInterface
{
    /**
     * Validate data
     * @param array $data An array that contains fields
     * @param string $fieldName A field name to be validated
     */
    public function validate(array $data, string $fieldName): bool;
    public function getErrorMessage($fieldName): string;
}
