SearchDemand
class \
Holds necessary data to query data from a search provider
Internal
may change in further iterations, do not rely on it
Table of Contents
Constants
- DEFAULT_LIMIT : mixed = 20
Properties
Methods
- __construct() : mixed
- fromRequest() : static
- getLimit() : int
- getOffset() : int
- getPageId() : int
- getProperties() : DemandProperty[]
- getProperty() : DemandProperty|null
- getQuery() : string
-
getSearchProviders()
: class-string
[]
Constants
DEFAULT_LIMIT
public
mixed
DEFAULT_LIMIT
= 20
Properties
$demandProperties
protected
DemandProperty[]
$demandProperties
= []
Methods
__construct()
public
final __construct([DemandProperty[] $demandProperties = [] ]) : mixed
Parameters
- $demandProperties : DemandProperty[] = []
fromRequest()
public
static fromRequest(ServerRequestInterface $request) : static
Parameters
- $request : ServerRequestInterface
Return values
staticgetLimit()
public
getLimit() : int
Return values
intgetOffset()
public
getOffset() : int
Return values
intgetPageId()
public
getPageId() : int
Return values
intgetProperties()
public
getProperties() : DemandProperty[]
Return values
DemandProperty[]getProperty()
public
getProperty(DemandPropertyName $demandPropertyName) : DemandProperty|null
Parameters
- $demandPropertyName : DemandPropertyName
Return values
DemandProperty|nullgetQuery()
public
getQuery() : string
Return values
stringgetSearchProviders()
public
getSearchProviders() : class-string []