Property   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 34
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 4 1
A getValue() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Phact\Container\Details;
4
5
class Property implements PropertyInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $name;
11
12
    /**
13
     * @var mixed
14
     */
15
    private $value;
16
17 4
    public function __construct(string $name, $value)
18
    {
19 4
        $this->name = $name;
20 4
        $this->value = $value;
21 4
    }
22
23
    /**
24
     * @return string
25
     */
26 3
    public function getName(): string
27
    {
28 3
        return $this->name;
29
    }
30
31
    /**
32
     * @return mixed
33
     */
34 3
    public function getValue()
35
    {
36 3
        return $this->value;
37
    }
38
}
39