PHP Class Cartalyst\Sentinel\Hashing\CallbackHasher

Inheritance: implements Cartalyst\Sentinel\Hashing\HasherInterface
Afficher le fichier Open project: cartalyst/sentinel Class Usage Examples

Protected Properties

Свойство Type Description
$check Closure The closure used for checking a hashed value.
$hash Closure The closure used for hashing a value.

Méthodes publiques

Méthode Description
__construct ( Closure $hash, Closure $check ) : void Create a new callback hasher instance.
check ( $value, $hashedValue ) {@inheritDoc}
hash ( $value ) {@inheritDoc}

Method Details

__construct() public méthode

Create a new callback hasher instance.
public __construct ( Closure $hash, Closure $check ) : void
$hash Closure
$check Closure
Résultat void

check() public méthode

{@inheritDoc}
public check ( $value, $hashedValue )

hash() public méthode

{@inheritDoc}
public hash ( $value )

Property Details

$check protected_oe property

The closure used for checking a hashed value.
protected Closure $check
Résultat Closure

$hash protected_oe property

The closure used for hashing a value.
protected Closure $hash
Résultat Closure