Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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 | } |
||
41 |