PHPUnitTestCaseTestDummy   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A privateMethod() 0 4 1
A publicMethod() 0 4 1
1
<?php
2
3
namespace FwolfTest\Wrapper\PHPUnit;
4
5
/**
6
 * PHPUnitTestCaseTestDummy
7
 */
8
class PHPUnitTestCaseTestDummy
9
{
10
    /** @type int $p */
11
    private $privateProperty = 1;
12
13
    /** @type int $p2 */
14
    private static $privateStaticProperty = 2;
15
16
17
    private function privateMethod(): int
18
    {
19
        return $this->privateProperty + self::$privateStaticProperty;
20
    }
21
22
23
    public function publicMethod(): int
24
    {
25
        return $this->privateMethod();
26
    }
27
}
28