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

Tabs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A onDeleteCascade() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Entity\Component\Navigation\Tabs;
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
 * Class Tabs
11
 * @package Silverback\ApiComponentBundle\Entity\Component\Navigation\Tabs
12
 * @author Daniel West <[email protected]>
13
 * @ORM\Entity()
14
 */
15
class Tabs extends AbstractNavigation
16
{
17
    public function __construct()
18
    {
19
        parent::__construct();
20
        $this->addValidComponent(TabsItem::class);
21
        $this->addComponentGroup(new ComponentGroup());
22
    }
23
24
    public function onDeleteCascade(): bool
25
    {
26
        return true;
27
    }
28
}
29