| 1 | <?php |
||
| 7 | class ReferenceEntity |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int|null |
||
| 11 | */ |
||
| 12 | private $id; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var MyEntity |
||
| 16 | */ |
||
| 17 | private $reference; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var ReferenceEntity |
||
| 21 | */ |
||
| 22 | private $parent; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var ReferenceEntity[]|ArrayCollection |
||
| 26 | */ |
||
| 27 | private $children; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * ReferenceEntity constructor. |
||
| 31 | */ |
||
| 32 | public function __construct() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return MyEntity |
||
| 39 | */ |
||
| 40 | public function getReference() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param MyEntity $reference |
||
| 47 | */ |
||
| 48 | public function setReference($reference) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return ReferenceEntity |
||
| 55 | */ |
||
| 56 | public function getParent() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param ReferenceEntity $parent |
||
| 63 | */ |
||
| 64 | public function setParent($parent) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return ReferenceEntity[] |
||
| 71 | */ |
||
| 72 | public function getChildren() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return int|null |
||
| 79 | */ |
||
| 80 | public function getId() |
||
| 84 | } |
||
| 85 |