Passed
Push — master ( 61784f...edb6b1 )
by Maxime
05:21
created

ButtonLink   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFields() 0 3 1
A getFormClass() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MonsieurBiz\SyliusRichEditorPlugin\UiElement\Element;
6
7
use MonsieurBiz\SyliusRichEditorPlugin\Form\Type\UiElement\ButtonLinkType;
8
use MonsieurBiz\SyliusRichEditorPlugin\UiElement\AbstractUiElement;
9
10
class ButtonLink extends AbstractUiElement
11
{
12
    protected $type = 'button_link';
13
14
    public function getFields(): array
15
    {
16
        return ['label', 'link'];
17
    }
18
19
    public function getFormClass(): string
20
    {
21
        return ButtonLinkType::class;
22
    }
23
}
24