Passed
Push — develop ( 319bd8...330c7a )
by Neill
16:41 queued 15s
created

Section::getComponentDetails()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 6
ccs 0
cts 6
cp 0
crap 2
rs 10
1
<?php
2
/**
3
 * @link http://www.newicon.net/neon
4
 * @copyright Copyright (c) 2016 Newicon Ltd
5
 * @license http://www.newicon.net/neon/license
6
 */
7
8
namespace neon\core\form\fields;
9
10
use neon\core\form\fields\Field;
11
12
/**
13
 * Class Text
14
 * @package neon\core\form
15
 */
16
class Section extends Field
17
{
18
	/**
19
	 * Sections do not have errors
20
	 * @return string
21
	 */
22
	public function getErrorHtml()
23
	{
24
		return '';
25
	}
26
27
	/**
28
	 * @inheritdoc
29
	 */
30
	public function getComponentDetails()
31
	{
32
		return [
33
			'group' => "Form Only",
34
			'icon' => 'fa fa-square-o',
35
			'order' => 925
36
		];
37
	}
38
}