ICWNAFWDACGA::__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 NamespaceDep\ClassDep;
7
use NS\IClass;
8
9
/**
10
 * Generated Class
11
 */
12
class ICWNAFWDACGA extends ExtendClass implements IClass
13
{
14
    /**
15
     * session unique identifier
16
     *
17
     * @var int
18
     */
19
    private $prova;
20
21
    /**
22
     * comment ClassDep
23
     *
24
     * @var NamespaceDep\ClassDep
25
     */
26
    private $dependency;
27
28
    /**
29
     * costruttore
30
     */
31
    final public function __construct($prova)
32
    {
33
        $this->prova = $prova;
34
        // autoinizialize
35
        $this->dependency = new ClassDep();
0 ignored issues
show
Documentation Bug introduced by
It seems like new \NamespaceDep\ClassDep() of type object<NamespaceDep\ClassDep> is incompatible with the declared type object<TestNamespace\NamespaceDep\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...
36
    }
37
38
    /**
39
     * @return int
40
     */
41
    final public function getProva()
42
    {
43
        return $this->prova;
44
    }
45
46
    /**
47
     * @return NamespaceDep\ClassDep
48
     */
49
    final public function getDependency()
50
    {
51
        return $this->dependency;
52
    }
53
}
54