Completed
Pull Request — master (#14)
by Pavel
04:42
created

TestEntity   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 59
c 0
b 0
f 0
wmc 6
lcom 0
cbo 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getParent() 0 4 1
A getId() 0 4 1
A getPayload() 0 4 1
A getReferences() 0 4 1
A setParent() 0 4 1
1
<?php
2
3
namespace Bankiru\Api\Doctrine\Test\Entity;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
7
class TestEntity
8
{
9
    /** @var  int */
10
    private $id;
11
    /** @var  string */
12
    private $payload;
13
    /** @var  TestReference[]|ArrayCollection */
14
    private $references;
15
    /** @var  TestReference */
16
    private $parent;
17
18
    /**
19
     * TestEntity constructor.
20
     */
21
    public function __construct()
22
    {
23
        $this->references = new ArrayCollection();
24
    }
25
26
    /**
27
     * @return TestReference
28
     */
29
    public function getParent()
30
    {
31
        return $this->parent;
32
    }
33
34
    /**
35
     * @return int
36
     */
37
    public function getId()
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getPayload()
46
    {
47
        return $this->payload;
48
    }
49
50
    /**
51
     * @return TestReference[]|ArrayCollection
52
     */
53
    public function getReferences()
54
    {
55
        return $this->references;
56
    }
57
58
    /**
59
     * @param TestReference $parent
60
     */
61
    public function setParent(TestReference $parent)
62
    {
63
        $this->parent = $parent;
64
    }
65
}
66