AnnotationConfigVisitor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A filterPropertyConfig() 0 10 1
1
<?php
2
3
namespace Pgs\ElasticOM\Annotation\Visitor;
4
5
class AnnotationConfigVisitor extends AnnotationVisitor
6
{
7 1
    protected function filterPropertyConfig(array $config): array
8
    {
9 1
        return array_filter(
10
            $config,
11 1
            function ($key) {
12 1
                return !in_array($key, ['idField', 'targetClass'], true);
13 1
            },
14 1
            ARRAY_FILTER_USE_KEY
15
        );
16
    }
17
}
18