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

AppFormClassSelector::getComponentDetails()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
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
 * @author Steve O'Brien <[email protected]> 02/12/2016 10:58
7
 * @package neon
8
 */
9
10
namespace neon\phoebe\form\fields;
11
12
use \neon\core\form\fields\SelectDynamic;
13
14
/**
15
 * Class AppFormSelector - provides a drop down list of available AppForms
16
 * @package neon\cms\form\fields
17
 */
18
class AppFormClassSelector extends SelectDynamic
19
{
20
	public $dataMapProvider = 'phoebe';
21
	public $dataMapFilters = ['phoebe_type'=>'applicationForm'];
22
	public $dataMapKey = 'phoebe_class';
23
24
	/**
25
	 * @inheritdoc
26
	 */
27
	public function getComponentDetails()
28
	{
29
		return [
30
			'label' => 'Form Class', 'icon' => 'fa fa-link', 'group' => 'Phoebe', 'order' => 1010
31
		];
32
	}
33
}