1 | <?php |
||
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() |
||
25 | |||
26 | /** |
||
27 | * @return TestReference |
||
28 | */ |
||
29 | public function getParent() |
||
33 | |||
34 | /** |
||
35 | * @return int |
||
36 | */ |
||
37 | public function getId() |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getPayload() |
||
49 | |||
50 | /** |
||
51 | * @return TestReference[]|ArrayCollection |
||
52 | */ |
||
53 | public function getReferences() |
||
57 | |||
58 | /** |
||
59 | * @param TestReference $parent |
||
60 | */ |
||
61 | public function setParent(TestReference $parent) |
||
65 | } |
||
66 |