ICWNAFWDACG::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace TestNamespace;
4
5
use ExtendClass;
6
use NS\IClass;
7
8
/**
9
 * Generated Class
10
 */
11
class ICWNAFWDACG extends ExtendClass implements IClass
12
{
13
    /**
14
     * session unique identifier
15
     *
16
     * @var int
17
     */
18
    private $prova;
19
20
    /**
21
     * comment ClassDep
22
     *
23
     * @var TestNamespace\ClassDep
24
     */
25
    private $dependency;
26
27
    /**
28
     * costruttore
29
     */
30
    final public function __construct($prova)
31
    {
32
        $this->prova = $prova;
33
        // autoinizialize
34
        $this->dependency = new ClassDep();
0 ignored issues
show
Documentation Bug introduced by
It seems like new \TestNamespace\ClassDep() of type object<TestNamespace\ClassDep> is incompatible with the declared type object<TestNamespace\TestNamespace\ClassDep> of property $dependency.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
35
    }
36
37
    /**
38
     * @return int
39
     */
40
    final public function getProva()
41
    {
42
        return $this->prova;
43
    }
44
}
45