Passed
Push — master ( 1d5fb4...e5c3c4 )
by Sam
06:33 queued 01:55
created

Configuration::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Model;
6
7
use Doctrine\ORM\Mapping as ORM;
8
use Ecodev\Felix\Model\Traits\HasDescription;
9
10
/**
11
 * Configuration.
12
 *
13
 * @ORM\Entity(repositoryClass="Application\Repository\ConfigurationRepository")
14
 */
15
class Configuration extends AbstractModel
16
{
17
    use HasDescription;
18
19
    /**
20
     * @ORM\Column(type="text")
21
     */
22
    private string $value = '';
23
24 3
    public function __construct(
25
        /**
26
         * @ORM\Column(name="`key`", type="string", length=191, unique=true)
27
         */
28
        private string $key = ''
29
    ) {
30
    }
31
32
    /**
33
     * Get key.
34
     */
35
    public function getKey(): string
36
    {
37
        return $this->key;
38
    }
39
40
    /**
41
     * Set value.
42
     */
43
    public function setValue(string $value): void
44
    {
45
        $this->value = $value;
46
    }
47
48
    /**
49
     * Get value.
50
     */
51
    public function getValue(): string
52
    {
53
        return $this->value;
54
    }
55
}
56