import PropertyUtils from "@impl/utils/PropertyUtils";
import IValidations from "./IValidations";
import { ValidationResult } from "./RuleEngine";

// File containing validation class

export default class Validations implements IValidations {
    public readonly exampleValue: boolean;
    
    public constructor(json: any, validationResults: ValidationResult[]) {
        this.exampleValue = PropertyUtils.getValue<this>(json, Validations.name, validationResults, { isRequired: true }, x => x.exampleValue);
    }
}
