1 | <?php |
||
22 | class ApprovedByPropertyAnnotator implements PropertyAnnotator { |
||
23 | |||
24 | /** |
||
25 | * Predefined property ID |
||
26 | */ |
||
27 | const PROP_ID = '___APPROVEDBY'; |
||
28 | |||
29 | /** |
||
30 | * @var AppFactory |
||
31 | */ |
||
32 | private $appFactory; |
||
33 | |||
34 | /** |
||
35 | * @var Integer|null |
||
36 | */ |
||
37 | private $approvedBy; |
||
38 | |||
39 | /** |
||
40 | * @param AppFactory $appFactory |
||
41 | 4 | */ |
|
42 | 4 | public function __construct( AppFactory $appFactory ) { |
|
45 | |||
46 | /** |
||
47 | * @since 2.0 |
||
48 | * |
||
49 | * @param User $approvedBy |
||
50 | 2 | */ |
|
51 | 2 | public function setApprovedBy( $approvedBy ) { |
|
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | 1 | */ |
|
58 | 1 | public function isAnnotatorFor( DIProperty $property ) { |
|
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | 2 | */ |
|
65 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
||
82 | 2 | ||
83 | private function getDataItem() { |
||
92 | 1 | ||
93 | } |
||
94 |
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..