Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
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({"default"}) |
||
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 | } |
|
31 | |||
32 | /** |
||
33 | * @return ComponentGroup |
||
34 | */ |
||
35 | public function getChildComponentGroup(): ComponentGroup |
||
38 | } |
||
39 | } |
||
40 |