1 | <?php |
||
20 | class ApprovedStatusPropertyAnnotator implements PropertyAnnotator { |
||
21 | |||
22 | /** |
||
23 | * Predefined property ID |
||
24 | */ |
||
25 | const PROP_ID = '___APPROVEDSTATUS'; |
||
26 | |||
27 | /** |
||
28 | * @var AppFactory |
||
29 | */ |
||
30 | private $appFactory; |
||
31 | |||
32 | /** |
||
33 | * @var Integer|null |
||
34 | */ |
||
35 | private $approvedStatus; |
||
36 | |||
37 | /** |
||
38 | 4 | * @param AppFactory $appFactory |
|
39 | 4 | */ |
|
40 | 4 | public function __construct( AppFactory $appFactory ) { |
|
43 | |||
44 | /** |
||
45 | * @since 2.0 |
||
46 | * |
||
47 | 2 | * @param string $approvedStatus |
|
48 | 2 | */ |
|
49 | 2 | public function setApprovedStatus( $approvedStatus ) { |
|
52 | |||
53 | /** |
||
54 | 1 | * {@inheritDoc} |
|
55 | 1 | */ |
|
56 | public function isAnnotatorFor( DIProperty $property ) { |
||
59 | |||
60 | /** |
||
61 | 2 | * {@inheritDoc} |
|
62 | */ |
||
63 | 2 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
|
90 | |||
91 | } |
||
92 |
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..