EntityDefinition   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getClass() 0 2 1
A __construct() 0 4 1
A getChoiceLabel() 0 2 1
1
<?php
2
3
/*
4
 * This file is part of the OneGuard DynamicConfigurationBundle.
5
 *
6
 * (c) OneGuard <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace OneGuard\Bundle\DynamicConfigurationBundle;
13
14
class EntityDefinition extends Definition {
15
	private $class;
16
	private $choiceLabel;
17
18
	/**
19
	 * EntityDefinition constructor.
20
	 * @param $key
21
	 * @param $class
22
	 * @param $choiceLabel
23
	 */
24
	public function __construct($key, $class, $choiceLabel) {
25
		parent::__construct($key);
26
		$this->class = $class;
27
		$this->choiceLabel = $choiceLabel;
28
	}
29
30
	/**
31
	 * @return mixed
32
	 */
33
	public function getClass() {
34
		return $this->class;
35
	}
36
37
	/**
38
	 * @return mixed
39
	 */
40
	public function getChoiceLabel() {
41
		return $this->choiceLabel;
42
	}
43
}
44