Sha256   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPattern() 0 4 1
1
<?php
2
3
namespace Jgxvx\Common\Validator\Hash;
4
5
use Jgxvx\Common\Validator\AbstractRegexValidator;
6
7
class Sha256 extends AbstractRegexValidator
8
{
9
10 2
    protected function getPattern() : string
11
    {
12 2
        return '/^[a-f0-9]{64}$/i';
13
    }
14
}
15