src/Matchers/YearMatch.php
public static function match($password, array $userInputs = [])
    {
        $matches = [];
        $groups = static::findAll($password, '/(19\\d\\d|200\\d|201\\d)/');
        foreach ($groups as $captures) {
            $matches[] = new static($password, $captures[1]['begin'], $captures[1]['end'], $captures[1]['token']);
        }

        return $matches;
    }
public static function match($password, array $userInputs = [])
    {
        $matches = [];
        $groups = static::findAll($password, '/(19\\d\\d|200\\d|201\\d)/');
        foreach ($groups as $captures) {
            $matches[] = new static($password, $captures[1]['begin'], $captures[1]['end'], $captures[1]['token']);
        }

        return $matches;
    }
public static function match ( $ password , array $ userInputs = [ ] ) { $ matches = [ ] ; $ groups = static :: findAll ( $ password , '/(19\\d\\d|200\\d|201\\d)/' ) ; foreach ( $ groups as $ captures ) { $ matches [ ] = new static ( $ password , $ captures [ 1 ] [ 'begin' ] , $ captures [ 1 ] [ 'end' ] , $ captures [ 1 ] [ 'token' ] ) ; } return $ matches ; }
Match occurences of years in a password.

@copydoc Match::match()

@param       $password
@param array $userInputs

@return array
Match occurences of years in a password .