Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 0 |
1 | <?php |
||
19 | class ComponentGroup extends AbstractContent implements ValidComponentInterface |
||
20 | { |
||
21 | use ValidComponentTrait; |
||
22 | |||
23 | /** |
||
24 | * @ORM\ManyToOne(targetEntity="Silverback\ApiComponentBundle\Entity\Component\AbstractComponent", inversedBy="componentGroups") |
||
25 | * @ORM\JoinColumn(onDelete="SET NULL") |
||
26 | * @var AbstractComponent |
||
27 | */ |
||
28 | protected $parent; |
||
29 | |||
30 | 5 | public function __construct() |
|
34 | 5 | } |
|
35 | |||
36 | |||
37 | /** |
||
38 | * @return AbstractComponent |
||
39 | */ |
||
40 | public function getParent(): AbstractComponent |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param AbstractComponent $parent |
||
47 | * @param bool|null $cascadeValidComponent |
||
48 | */ |
||
49 | 5 | public function setParent(AbstractComponent $parent, ?bool $cascadeValidComponent = null): void |
|
58 |