Passed
Push — master ( e1084c...1b59a4 )
by Fabien
02:20
created

Validator::validateDirectoriesToScan()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
nc 2
nop 1
dl 0
loc 9
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Churn\Configuration;
6
7
/**
8
 * @internal
9
 */
10
interface Validator
11
{
12
    /**
13
     * Returns the configuration key.
14
     */
15
    public function getKey(): string;
16
17
    /**
18
     * @param EditableConfig $config The configuration object.
19
     * @param array<mixed> $configuration The array containing the configuration values.
20
     */
21
    public function validate(EditableConfig $config, array $configuration): void;
22
}
23