| 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 | 	public function __construct( AppFactory $appFactory ) { | 
            ||
| 41 | |||
| 42 | /**  | 
            ||
| 43 | * @since 2.0  | 
            ||
| 44 | *  | 
            ||
| 45 | * @param string $approvedStatus  | 
            ||
| 46 | */  | 
            ||
| 47 | 	public function setApprovedStatus( $approvedStatus ) { | 
            ||
| 50 | |||
| 51 | /**  | 
            ||
| 52 | 	 * {@inheritDoc} | 
            ||
| 53 | */  | 
            ||
| 54 | 	public function isAnnotatorFor( DIProperty $property ) { | 
            ||
| 57 | |||
| 58 | 	public function getDataItem() { | 
            ||
| 59 | return new DIString( $this->approvedStatus );  | 
            ||
| 60 | }  | 
            ||
| 61 | |||
| 62 | /**  | 
            ||
| 63 | 	 * {@inheritDoc} | 
            ||
| 64 | */  | 
            ||
| 65 | public function addAnnotation(  | 
            ||
| 83 | }  | 
            ||
| 84 | 
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..