UserSearchRequest
in package
implements
RequestInterface
Class UserSearchRequest
Table of Contents
Interfaces
- RequestInterface
- Interface RequestInterface
Properties
Methods
- __construct() : mixed
- getGender() : int
- getLocation() : string
- getMaxAge() : int
- getMinAge() : int
- getPage() : int
- getPath() : string
- Get the path to request
- getQuery() : string|null
- setGender() : UserSearchRequest
- setLocation() : UserSearchRequest
- setMaxAge() : UserSearchRequest
- setMinAge() : UserSearchRequest
- setPage() : UserSearchRequest
- setQuery() : UserSearchRequest
Properties
$gender
private
int
$gender
= \Jikan\Helper\Constants::SEARCH_USER_GENDER_ANY
$location
private
string
$location
$maxAge
private
int
$maxAge
= 0
$minAge
private
int
$minAge
= 0
$page
private
int
$page
$query
private
string|null
$query
Methods
__construct()
public
__construct([string|null $query = null ][, int $page = 1 ]) : mixed
Parameters
- $query : string|null = null
- $page : int = 1
getGender()
public
getGender() : int
Return values
intgetLocation()
public
getLocation() : string
Return values
stringgetMaxAge()
public
getMaxAge() : int
Return values
intgetMinAge()
public
getMinAge() : int
Return values
intgetPage()
public
getPage() : int
Return values
intgetPath()
Get the path to request
public
getPath() : string
Return values
stringgetQuery()
public
getQuery() : string|null
Return values
string|nullsetGender()
public
setGender(int|null $gender) : UserSearchRequest
Parameters
- $gender : int|null
Return values
UserSearchRequestsetLocation()
public
setLocation(string|null $location) : UserSearchRequest
Parameters
- $location : string|null
Return values
UserSearchRequestsetMaxAge()
public
setMaxAge(int|null $maxAge) : UserSearchRequest
Parameters
- $maxAge : int|null
Return values
UserSearchRequestsetMinAge()
public
setMinAge(int|null $minAge) : UserSearchRequest
Parameters
- $minAge : int|null
Return values
UserSearchRequestsetPage()
public
setPage(int $page) : UserSearchRequest
Parameters
- $page : int
Return values
UserSearchRequestsetQuery()
public
setQuery(string|null $query) : UserSearchRequest
Parameters
- $query : string|null