Completed
Push — master ( b3d4a6...bc6362 )
by Jürg
05:03
created

Sha256   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 8
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
    protected function getPattern() : string
11
    {
12
        return '/^[a-f0-9]{64}$/i';
13
    }
14
}
15