Completed
Push — master ( a6572a...9cf5ab )
by Alexandr
03:38
created

FormButton   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
rs 10

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
        return $this;
22
    }
23
}