ConfigurationValue   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 46
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setKey() 0 2 1
A getKey() 0 2 1
A getValue() 0 2 1
A setValue() 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\Entity;
13
14
use Doctrine\ORM\Mapping as ORM;
15
use Symfony\Component\Validator\Constraints as Assert;
16
17
/**
18
 * @ORM\Entity()
19
 */
20
class ConfigurationValue {
21
	/**
22
	 * @var string
23
	 *
24
	 * @ORM\Id()
25
	 * @ORM\Column(name="`key`", nullable=false, type="string", length=64)
26
	 *
27
	 * @Assert\NotNull()
28
	 * @Assert\NotBlank()
29
	 * @Assert\Length(max="64")
30
	 */
31
	private $key;
32
33
	/**
34
	 * @var string
35
	 *
36
	 * @ORM\Column(name="`value`", nullable=false, type="text")
37
	 */
38
	private $value;
39
40
	/**
41
	 * @return string|null
42
	 */
43
	public function getKey() {
44
		return $this->key;
45
	}
46
47
	/**
48
	 * @param string|null $key
49
	 */
50
	public function setKey(string $key = null) {
51
		$this->key = $key;
52
	}
53
54
	/**
55
	 * @return string|null
56
	 */
57
	public function getValue() {
58
		return $this->value;
59
	}
60
61
	/**
62
	 * @param string|null $value
63
	 */
64
	public function setValue(string $value = null) {
65
		$this->value = $value;
66
	}
67
}
68