| 1 | <?php |
||
| 4 | class SearchResult extends BaseModel |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Indicates what type of match was found for the result |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $matchType = null; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * File\Folder Metadata |
||
| 16 | * |
||
| 17 | * @var \Dropbox\Models\FileMetadata|\Dropbox\Models\FolderMetadata |
||
| 18 | */ |
||
| 19 | protected $metadata; |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * Create a new SearchResult instance |
||
| 24 | * |
||
| 25 | * @param array $data |
||
| 26 | */ |
||
| 27 | 3 | public function __construct(array $data) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Set Metadata |
||
| 37 | * |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | 3 | protected function setMetadata() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Indicates what type of match was found for the result |
||
| 51 | * |
||
| 52 | * @return bool |
||
| 53 | */ |
||
| 54 | public function getMatchType() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get the Search Result Metadata |
||
| 61 | * |
||
| 62 | * @return \Dropbox\Models\FileMetadata|\Dropbox\Models\FolderMetadata |
||
| 63 | */ |
||
| 64 | 3 | public function getMetadata() |
|
| 68 | } |
||
| 69 |
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..