ImplementsClassWithNamespaceAndFieldWithDependency   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 25
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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 ImplementsClassWithNamespaceAndFieldWithDependency 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, classDep $dependency)
32
    {
33
        $this->prova = $prova;
34
        $this->dependency = $dependency;
0 ignored issues
show
Documentation Bug introduced by
It seems like $dependency 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...
35
    }
36
}
37