AbstractPropertyAnnotation   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
eloc 13
dl 0
loc 55
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getEntity() 0 3 1
A getType() 0 3 1
A getName() 0 3 1
A getCode() 0 3 1
A isMultiple() 0 3 1
A isPrimaryKey() 0 3 1
1
<?php
2
3
namespace BitrixToolkit\BitrixEntityMapper\Annotation\Property;
4
5
abstract class AbstractPropertyAnnotation implements PropertyAnnotationInterface
6
{
7
    protected $code;
8
    protected $type;
9
    protected $multiple;
10
    protected $primaryKey = false;
11
    protected $entity;
12
    protected $name;
13
14
    /**
15
     * @return string
16
     */
17 23
    public function getCode()
18
    {
19 23
        return $this->code;
20
    }
21
22
    /**
23
     * @return string
24
     */
25 23
    public function getType()
26
    {
27 23
        return $this->type;
28
    }
29
30
    /**
31
     * @return bool
32
     */
33 1
    public function isMultiple()
34
    {
35 1
        return $this->multiple;
36
    }
37
38
    /**
39
     * @return string
40
     */
41 3
    public function getName()
42
    {
43 3
        return $this->name;
44
    }
45
46
    /**
47
     * @return bool
48
     */
49 6
    public function isPrimaryKey()
50
    {
51 6
        return $this->primaryKey;
52
    }
53
54
    /**
55
     * @return string
56
     */
57 19
    public function getEntity()
58
    {
59 19
        return $this->entity;
60
    }
61
}