PHP Class Cartalyst\Sentinel\Hashing\CallbackHasher

Inheritance: implements Cartalyst\Sentinel\Hashing\HasherInterface
Datei anzeigen Open project: cartalyst/sentinel Class Usage Examples

Protected Properties

Property Type Description
$check Closure The closure used for checking a hashed value.
$hash Closure The closure used for hashing a value.

Public Methods

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

Method Details

__construct() public method

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

check() public method

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

hash() public method

{@inheritDoc}
public hash ( $value )

Property Details

$check protected_oe property

The closure used for checking a hashed value.
protected Closure $check
return Closure

$hash protected_oe property

The closure used for hashing a value.
protected Closure $hash
return Closure