| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class AbstractFeature extends AbstractComponent |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @ORM\Column() |
||
| 16 | 2 | * @Groups({"component", "content"}) |
|
| 17 | * @var null|string |
||
| 18 | 2 | */ |
|
| 19 | 2 | protected $title; |
|
| 20 | 2 | ||
| 21 | 2 | public function __construct() |
|
| 22 | { |
||
| 23 | parent::__construct(); |
||
| 24 | $this->addValidComponent(AbstractFeatureItem::class); |
||
| 25 | $this->addComponentGroup(new ComponentGroup()); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return null|string |
||
| 30 | */ |
||
| 31 | public function getTitle(): ?string |
||
| 34 | } |
||
| 35 | |||
| 36 | public function setTitle(?string $title): self |
||
| 40 | } |
||
| 41 | |||
| 42 | public function onDeleteCascade(): bool |
||
| 45 | } |
||
| 46 | } |
||
| 47 |