Group::getDefaultSpecs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 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