Passed
Push — develop ( 0112d6...38c008 )
by Daniel
05:14
created

Tabs::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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