Validator::validate()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Groundsix\Password;
6
7
interface Validator
8
{
9
    /**
10
     * Validates the password against the current rule.
11
     *
12
     * @param string $password The password to verify.
13
     * @return bool True if the password passes. False otherwise.
14
     * @throws PasswordException
15
     */
16
    public function validate(string $password): bool;
17
}
18