StaticTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isStatic() 0 4 1
A setStatic() 0 6 1
1
<?php
2
3
namespace Benoth\StaticReflection\Reflection\Parts;
4
5
trait StaticTrait
6
{
7
    protected $isStatic = false;
8
9 108
    public function isStatic()
10
    {
11 108
        return $this->isStatic === true;
12
    }
13
14 1062
    public function setStatic($isStatic)
15
    {
16 1062
        $this->isStatic = (bool) $isStatic;
17
18 1062
        return $this;
19
    }
20
}
21