ZxcvbnDecorator::passwordStrength()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace Createnl\ZxcvbnBundle;
5
6
use ZxcvbnPhp\Zxcvbn;
7
8
class ZxcvbnDecorator extends Zxcvbn
9
{
10
    /**
11
     * @var Zxcvbn
12
     */
13
    private $inner;
14
15 2
    public function __construct(Zxcvbn $inner)
16
    {
17 2
        $this->inner = $inner;
18
19 2
        parent::__construct();
20 2
    }
21
22 1
    public function addMatcher(string $className)
23
    {
24 1
        return $this->inner->addMatcher($className);
25
    }
26
27 1
    public function passwordStrength($password, array $userInputs = [])
28
    {
29 1
        return $this->inner->passwordStrength($password, $userInputs);
30
    }
31
32
}
33