FormButton   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setButtonType() 0 5 1
1
<?php
2
3
namespace Larrock\Core\Helpers\FormBuilder;
4
5
class FormButton extends FBElement
6
{
7
    /** @var string Тип кнопки (submit|button|reset) */
8
    public $buttonType = 'submit';
9
10
    /** @var string Имя шаблона FormBuilder для отрисовки поля */
11
    public $FBTemplate = 'larrock::admin.formbuilder.button.button';
12
13
    /**
14
     * Указываем тип кнопки (submit|button|reset).
15
     * @param $buttonType
16
     * @return $this
17
     */
18
    public function setButtonType($buttonType)
19
    {
20
        $this->buttonType = $buttonType;
21
22
        return $this;
23
    }
24
}
25