Passed
Push — master ( 943241...45600c )
by Paul
10:51 queued 05:35
created

BaseClass::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PHPUnitGenerator\Example;
4
5
class BaseClass
6
{
7
    public $property1;
8
9
    protected $property2;
10
11
    public function __construct()
12
    {
13
        // Some PHP code
14
    }
15
16
    /**
17
     * @PHPUnitGen\AssertEquals(5:{2, 3})
18
     * @PHPUnitGen\AssertEquals(0)
19
     */
20
    public static function simpleAddition(int $a = 0, int $b = 0): int
21
    {
22
        return $a + $b;
23
    }
24
25
    /**
26
     * @PHPUnitGen\Set()
27
     */
28
    public function setProperty1($property1)
29
    {
30
        $this->property1 = $property1;
31
    }
32
33
    /**
34
     * @PHPUnitGen\Get()
35
     */
36
    protected function getProperty2()
37
    {
38
        return $this->property2;
39
    }
40
}
41