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 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A makeStatic() 0 6 1
A isStatic() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Igni\Utils\ReflectionApi;
4
5
trait StaticTrait
6
{
7
    private $static = false;
8
9 1
    public function makeStatic(bool $static = true): self
10
    {
11 1
        $this->static = $static;
12
13 1
        return $this;
14
    }
15
16 10
    public function isStatic(): bool
17
    {
18 10
        return $this->static;
19
    }
20
}
21