Completed
Push — develop ( 755a17...843010 )
by Daniel
07:33
created

url::get_default_props()   A

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
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 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 url extends base
13
{
14
	/**
15
	 * @inheritdoc
16
	 */
17 2
	public function display_field(array $data)
18
	{
19 2
		return make_clickable($data['field_value']);
20
	}
21
22
	/**
23
	 * @inheritdoc
24
	 */
25 4
	public function get_default_props()
26
	{
27
		return array(
28 4
			'max'	=> 255,
29 4
		);
30
	}
31
32
	/**
33
	 * @inheritdoc
34
	 */
35 5
	public function get_name()
36
	{
37 5
		return 'url';
38
	}
39
}
40