radio   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 18
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_name() 0 3 1
A get_default_props() 0 5 1
1
<?php
2
/**
3
 *
4
 * @package sitemaker
5
 * @copyright (c) 2013 Daniel A. (blitze)
6
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
 *
8
 */
9
10
namespace blitze\content\services\form\field;
11
12
class radio extends choice
13
{
14
	/**
15
	 * @inheritdoc
16
	 */
17 2
	public function get_name()
18
	{
19 2
		return 'radio';
20
	}
21
22
	/**
23
	 * @inheritdoc
24
	 */
25 5
	public function get_default_props()
26
	{
27 5
		return array_merge(parent::get_default_props(), array(
28 5
			'multi_select'	=> false,
29 5
			'vertical'		=> false,
30 5
		));
31
	}
32
}
33