Completed
Push — develop ( 69e1c6...6a0b8a )
by Daniel
08:16
created

text   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_default_props() 0 8 1
A get_name() 0 4 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 text extends base
13
{
14
	/**
15
	 * @inheritdoc
16
	 */
17 1
	public function get_default_props()
18
	{
19
		return array(
20 1
			'field_size'		=> 40,
21 1
			'field_minlen'		=> 0,
22 1
			'field_maxlen'		=> 200,
23 1
		);
24
	}
25
26
	/**
27
	 * @inheritdoc
28
	 */
29 3
	public function get_name()
30
	{
31 3
		return 'text';
32
	}
33
}
34