Passed
Push — master ( 1b59d3...daf3c8 )
by Smoren
02:18
created

CompositeCheck   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Smoren\Validator\Checks;
6
7
use Smoren\Validator\Interfaces\CheckInterface;
8
use Smoren\Validator\Interfaces\MixedRuleInterface;
9
10
abstract class CompositeCheck implements CheckInterface
11
{
12
    /**
13
     * @var array<MixedRuleInterface>
14
     */
15
    protected array $rules;
16
17
    /**
18
     * @param array<MixedRuleInterface> $rules
19
     */
20 16
    public function __construct(array $rules)
21
    {
22 16
        $this->rules = $rules;
23
    }
24
}
25