check() public method

Checks the string against the hashed value.
public check ( string $value, string $hashedValue ) : boolean
$value string
$hashedValue string
return boolean
 /**
  * {@inheritDoc}
  */
 public function validateCredentials(UserInterface $user, array $credentials)
 {
     return $this->hasher->check($credentials['password'], $user->password);
 }