EntityDefinition::getChoiceLabel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
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