Passed
Pull Request — master (#408)
by
unknown
02:42
created

ValidatorFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Validator\Tests\Support;
6
7
use Yiisoft\Validator\SimpleRuleHandlerContainer;
8
use Yiisoft\Validator\Validator;
9
10
final class ValidatorFactory
11
{
12
    public static function make(): Validator
13
    {
14
        $translator = (new TranslatorFactory())->create();
15
        return new Validator(new SimpleRuleHandlerContainer(), $translator);
16
    }
17
}
18