SNCD::setProva()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
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 SNCD 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()
31
    {
32
        // autoinizialize
33
        $this->prova = 0;
34
        // autoinizialize
35
        $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...
36
    }
37
38
    /**
39
     * @return int
40
     */
41
    final public function getProva()
42
    {
43
        return $this->prova;
44
    }
45
46
    /**
47
     * @var prova int
48
     */
49
    final public function setProva(int $prova)
50
    {
51
        $this->prova = $prova;
52
    }
53
54
    /**
55
     * @return TestNamespace\ClassDep
56
     */
57
    final public function getDependency()
58
    {
59
        return $this->dependency;
60
    }
61
62
    /**
63
     * @var dependency TestNamespace\ClassDep
64
     */
65
    final public function setDependency(ClassDep $dependency)
66
    {
67
        $this->dependency = $dependency;
0 ignored issues
show
Documentation Bug introduced by
It seems like $dependency 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...
68
    }
69
}
70