Button   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 43
c 0
b 0
f 0
wmc 8
lcom 0
cbo 1
rs 10
ccs 14
cts 14
cp 1

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 4 1
A getButtonName() 0 4 1
A renderWith() 0 4 1
A setValueFromDefault() 0 4 1
A setValueFromModel() 0 4 1
A setValueFromRequest() 0 4 1
A fillModelWithValue() 0 4 1
A validateRequired() 0 4 1
1
<?php 
2
3
namespace Helmut\Forms\Fields\Button;
4
5
use Helmut\Forms\Field;
6
7
class Button extends Field {
8
9 4
    public function getValue() 
10
    {
11 4
        // 
12
    }
13
14 17
    public function getButtonName() 
15
    {
16 17
        return $this->name;
17
    }
18
19 4
    public function renderWith() 
20
    {
21 4
        //
22
    }
23
24 14
    public function setValueFromDefault()
25
    {
26
        // 
27 14
    }
28
29
    public function setValueFromModel($model)
30
    {
31
        //
32
    }   
33
34 7
    public function setValueFromRequest($request)
35
    {
36
        //
37 7
    }
38
39 4
    public function fillModelWithValue($model)
40
    {
41
        //
42 4
    }
43
44 3
    public function validateRequired()
45
    {
46 3
        return true;
47
    }
48
49
}