File: src/ValidationRuleInterface.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  PHP PASeTo  >  src/ValidationRuleInterface.php  >  Download  
File: src/ValidationRuleInterface.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP PASeTo
Encrypt and decrypt data with PaSeTO protocol
Author: By
Last change:
Date: 8 months ago
Size: 499 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Paseto;

/**
 * Interface ValidationRuleInterface
 * @package ParagonIE\Paseto
 */
interface ValidationRuleInterface
{
   
/**
     * Get the message of the last failure. Optional.
     *
     * @return string
     */
   
public function getFailureMessage(): string;

   
/**
     * Validate this token according to this rule.
     *
     * @param JsonToken $token
     * @return bool
     */
   
public function isValid(JsonToken $token): bool;
}


For more information send a message to info at phpclasses dot org.