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

AbstractFeature::onDeleteCascade()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Entity\Component\Feature;
4
5
use Silverback\ApiComponentBundle\Entity\Component\AbstractComponent;
6
use Silverback\ApiComponentBundle\Entity\Content\ComponentGroup\ComponentGroup;
7
8
/**
9
 * Class AbstractFeature
10
 * @package Silverback\ApiComponentBundle\Entity\Component\Feature
11
 */
12
abstract class AbstractFeature extends AbstractComponent
13
{
14
    public function __construct()
15
    {
16
        parent::__construct();
17
        $this->addValidComponent(AbstractFeatureItem::class);
18
        $this->addComponentGroup(new ComponentGroup());
19
    }
20
21
    public function onDeleteCascade(): bool
22
    {
23
        return true;
24
    }
25
}
26