Test Failed
Push — develop ( b13210...c32797 )
by Daniel
04:26
created

NavBar::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Entity\Component\Navigation\NavBar;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Silverback\ApiComponentBundle\Entity\Component\Navigation\AbstractNavigation;
7
use Silverback\ApiComponentBundle\Entity\Content\ComponentGroup\ComponentGroup;
8
9
/**
10
 * @author Daniel West <[email protected]
11
 * @ORM\Entity()
12
 */
13
class NavBar extends AbstractNavigation
14
{
15
    public function __construct()
16
    {
17
        parent::__construct();
18
        $this->addValidComponent(NavBarItem::class);
19
        $this->addComponentGroup(new ComponentGroup());
20
    }
21
22
    public function onDeleteCascade(): bool
23
    {
24
        return true;
25
    }
26
}
27