com\setasign\SetaFramework\SimpleCache\Validator

ValidatorInterface Interface ValidatorInterface

File: /SetaFramework/src/SimpleCache/Validator/ValidatorInterface.php

Implemented in

Summary

Methods

getValidationInfo()

abstract public ValidatorInterface::getValidationInfo (
void
): ?mixed

Fetches the actual validation information.

The cached value will be saved together with this information and will be given as $validationInfo in isValid().

isValid()

abstract public ValidatorInterface::isValid (
mixed $validationInfo
): bool

This method checks whether the cached value is still valid.

It should compare just compare $validationInfo with the actual result of getValidationInfo().

Parameters
$validationInfo : mixed

Must accept all possible results of getValidationInfo and null.