ICWNAFWDACG   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getProva() 0 4 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