SearchResult
class SearchResult extends BaseModel (View source)
Properties
protected array | $data | Model Data | from BaseModel |
protected string | $matchType | Indicates what type of match was found for the result | |
protected FileMetadata|FolderMetadata | $metadata | File\Folder Metadata |
Methods
__construct(array $data)
Create a new SearchResult instance
mixed|null
__set(string $property, string $value)
Handle calls to undefined properties.
from BaseModel
void
setMetadata()
Set Metadata
bool
getMatchType()
Indicates what type of match was found for the result
getMetadata()
Get the Search Result Metadata
Details
at line line 27
__construct(array $data)
Create a new SearchResult instance
mixed|null
__get(string $property)
Handle calls to undefined properties.
Check whether an item with the key, same as the property, is available on the data property.
mixed|null
__set(string $property, string $value)
Handle calls to undefined properties.
Sets an item with the defined value on the data property.
at line line 40
protected void
setMetadata()
Set Metadata
at line line 54
bool
getMatchType()
Indicates what type of match was found for the result
at line line 64
FileMetadata|FolderMetadata
getMetadata()
Get the Search Result Metadata