Total Complexity | 7 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 84.21% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class ApprovedStatusPropertyAnnotator { |
||
17 | |||
18 | /** |
||
19 | * @var DatabaseLogReader |
||
20 | */ |
||
21 | private $databaseLogReader; |
||
22 | |||
23 | /** |
||
24 | * @var Integer|null |
||
25 | */ |
||
26 | private $approvedStatus; |
||
27 | |||
28 | /** |
||
29 | * @param DatabaseLogReader $databaseLogReader |
||
30 | */ |
||
31 | 3 | public function __construct( DatabaseLogReader $databaseLogReader ) { |
|
32 | 3 | $this->databaseLogReader = $databaseLogReader; |
|
33 | 3 | } |
|
34 | |||
35 | /** |
||
36 | * @since 1.0 |
||
37 | * |
||
38 | * @param string $approvedStatus |
||
39 | */ |
||
40 | 2 | public function setApprovedStatus( $approvedStatus ) { |
|
41 | 2 | $this->approvedStatus = $approvedStatus; |
|
|
|||
42 | 2 | } |
|
43 | |||
44 | /** |
||
45 | * @since 1.0 |
||
46 | * |
||
47 | * @return DIProperty |
||
48 | */ |
||
49 | 2 | public function newDIProperty() { |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * @since 1.0 |
||
55 | * |
||
56 | * @param SemanticData $semanticData |
||
57 | */ |
||
58 | 2 | public function addAnnotation( SemanticData $semanticData ) { |
|
74 | ); |
||
75 | } |
||
79 |
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..