| 1 | <?php |
||
| 16 | abstract class BaseModel |
||
| 17 | { |
||
| 18 | use PropertyTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Data source identifier |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $dataSource; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Raw data as array representation |
||
| 29 | * |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | protected $rawData; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 3 | public function getDataSource() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $dataSource |
||
| 44 | * |
||
| 45 | * @return BaseModel |
||
| 46 | */ |
||
| 47 | 13 | public function setDataSource($dataSource) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | 1 | public function getRawData() |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @param mixed $rawData |
||
| 64 | * |
||
| 65 | * @return BaseModel |
||
| 66 | */ |
||
| 67 | 13 | public function setRawData($rawData) |
|
| 73 | } |
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..