AbstractPropertyAnnotation::getCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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
}