Property   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 42
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
A getDefaultValue() 0 4 1
A getDescription() 0 4 1
A getName() 0 4 1
1
<?php
2
3
namespace Magium\Util\Configuration\ConfigurationCollector;
4
5
class Property
6
{
7
8
    protected $name;
9
    protected $description;
10
    protected $defaultValue;
11
12
    public function __construct(
13
        $name,
14
        $defaultValue,
15
        $description = null
16
    )
17
    {
18
        $this->name = $name;
19
        $this->defaultValue = $defaultValue;
20
        $this->description = $description;
21
    }
22
23
    public function getDefaultValue()
24
    {
25
        return $this->defaultValue;
26
    }
27
28
    /**
29
     * @return mixed
30
     */
31
    public function getDescription()
32
    {
33
        return $this->description;
34
    }
35
36
    /**
37
     * @return mixed
38
     */
39
    public function getName()
40
    {
41
        return $this->name;
42
    }
43
44
45
46
}