| 1 | <?php |
||
| 18 | class ApprovedStatusPropertyAnnotator implements PropertyAnnotator { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Predefined property ID |
||
| 22 | */ |
||
| 23 | const PROP_ID = '___APPROVEDSTATUS'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var AppFactory |
||
| 27 | */ |
||
| 28 | private $appFactory; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var Integer|null |
||
| 32 | */ |
||
| 33 | private $approvedStatus; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param AppFactory $appFactory |
||
| 37 | */ |
||
| 38 | 4 | public function __construct( AppFactory $appFactory ) { |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @since 2.0 |
||
| 44 | * |
||
| 45 | * @param string $approvedStatus |
||
| 46 | */ |
||
| 47 | 2 | public function setApprovedStatus( $approvedStatus ) { |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritDoc} |
||
| 53 | */ |
||
| 54 | 1 | public function isAnnotatorFor( DIProperty $property ) { |
|
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritDoc} |
||
| 60 | */ |
||
| 61 | 2 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
|
| 81 | |||
| 82 | } |
||
| 83 |
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..