Group   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefaultSpecs() 0 6 1
1
<?php
2
namespace Sirius\Input\Element;
3
4
use Sirius\Input\Specs;
5
6
/**
7
 * A group is a container for other elements.
8
 * It doesn't occupy a namespace like a fieldset does and elements can be moved out of a group.
9
 *
10
 * This is usefull if you organize your input into sections that may be displayed as tabs.
11
 * The elements will be attached to the input but they will have a group assigned as 'group'
12
 */
13
class Group extends Input
14
{
15
16 2
    protected function getDefaultSpecs()
17
    {
18
        return array(
19 2
            Specs::WIDGET => 'group'
20 2
        );
21
    }
22
}
23