Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 0 |
1 | <?php |
||
16 | abstract class AbstractNavigation extends AbstractComponent |
||
17 | { |
||
18 | /** |
||
19 | * @ORM\ManyToOne(targetEntity="Silverback\ApiComponentBundle\Entity\Content\ComponentGroup", cascade={"persist"}) |
||
20 | * @ApiProperty(attributes={"fetchEager": false}) |
||
21 | * @Groups({"layout", "route", "content"}) |
||
22 | * @var ComponentGroup |
||
23 | */ |
||
24 | protected $childComponentGroup; |
||
25 | |||
26 | 6 | public function __construct() |
|
27 | { |
||
28 | 6 | parent::__construct(); |
|
29 | 6 | $this->childComponentGroup = new ComponentGroup(); |
|
30 | 6 | $this->childComponentGroup->setParent($this); |
|
31 | 6 | } |
|
32 | |||
33 | /** |
||
34 | * @return ComponentGroup |
||
35 | */ |
||
36 | public function getChildComponentGroup(): ComponentGroup |
||
39 | } |
||
40 | } |
||
41 |