ReflectionConstant   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 19
rs 10
ccs 5
cts 5
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 4 1
A setValue() 0 6 1
1
<?php
2
3
namespace Benoth\StaticReflection\Reflection;
4
5
class ReflectionConstant extends Reflection
6
{
7
    use Parts\DeclaringClassLikeTrait;
8
    use Parts\DocCommentTrait;
9
10
    protected $value;
11
12 36
    public function getValue()
13
    {
14 36
        return $this->value;
15
    }
16
17 741
    public function setValue($value)
18
    {
19 741
        $this->value = $value;
20
21 741
        return $this;
22
    }
23
}
24