src/PasswordValidator.php
public function validate(string $password): bool
    {
        foreach ($this->validators as $validator) {
            $validator->validate($password);
        }

        return true;
    }
public function validate(string $password): bool
    {
        foreach ($this->validators as $validator) {
            $validator->validate($password);
        }

        return true;
    }
public function validate ( string $ password ) : bool { foreach ( $ this -> validators as $ validator ) { $ validator -> validate ( $ password ) ; } return true ; }
Validates the given password against the current rule set.

@param string $password
@return bool True if the password is valid
@throws PasswordException If the password fails a validation attempt.
Validates the given password against the current rule set .