radio::get_default_props()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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