Id   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
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 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRawValues() 0 7 1
1
<?php
2
3
namespace Pgs\ElasticOM\Annotation;
4
5
/**
6
 * @Annotation
7
 */
8
class Id extends BaseAnnotation
9
{
10
    const KEY_NAME = 'idField';
11
12 1
    public function getRawValues(): array
13
    {
14 1
        return array_merge(
15 1
            [self::KEY_NAME => true],
16 1
            parent::getRawValues()
17
        );
18
    }
19
}
20