MangaSearchRequest
in package
implements
RequestInterface
Class MangaSearchRequest
Table of Contents
Interfaces
- RequestInterface
- Interface RequestInterface
Properties
- $char : string
- $endDate : array<string|int, int>
- $genre : array<string|int, int>
- $genreExclude : bool
- $magazine : int
- $orderBy : int
- $page : int
- $query : string
- $score : float
- $sort : int
- $startDate : array<string|int, int>
- $status : int
- $type : string
Methods
- __construct() : mixed
- MangaSearchRequest constructor.
- getChar() : string
- getEndDate() : array<string|int, int>
- getGenre() : array<string|int, int>
- getMagazine() : int
- getOrderBy() : int
- getPage() : int
- getPath() : string
- Get the path to request
- getQuery() : string
- getScore() : float
- getSort() : int
- getStartDate() : array<string|int, int>
- getStatus() : int
- getType() : string
- isGenreExclude() : bool
- setChar() : MangaSearchRequest
- setEndDate() : $this
- setGenre() : MangaSearchRequest
- setGenreExclude() : $this
- setMagazine() : $this
- setOrderBy() : MangaSearchRequest
- setPage() : $this
- setQuery() : $this
- setScore() : $this
- setSort() : MangaSearchRequest
- setStartDate() : $this
- setStartsWithChar() : $this
- setStatus() : $this
- setType() : $this
Properties
$char
private
string
$char
$endDate
private
array<string|int, int>
$endDate
= [0, 0, 0]
$genre
private
array<string|int, int>
$genre
= []
$genreExclude
private
bool
$genreExclude
= false
$magazine
private
int
$magazine
= 0
$orderBy
private
int
$orderBy
$page
private
int
$page
$query
private
string
$query
$score
private
float
$score
= 0
$sort
private
int
$sort
$startDate
private
array<string|int, int>
$startDate
= [0, 0, 0]
$status
private
int
$status
= 0
$type
private
string
$type
= 0
Methods
__construct()
MangaSearchRequest constructor.
public
__construct([string|null $query = null ][, int $page = 1 ]) : mixed
Parameters
- $query : string|null = null
- $page : int = 1
getChar()
public
getChar() : string
Return values
stringgetEndDate()
public
getEndDate() : array<string|int, int>
Return values
array<string|int, int>getGenre()
public
getGenre() : array<string|int, int>
Return values
array<string|int, int>getMagazine()
public
getMagazine() : int
Return values
intgetOrderBy()
public
getOrderBy() : int
Return values
intgetPage()
public
getPage() : int
Return values
intgetPath()
Get the path to request
public
getPath() : string
Return values
stringgetQuery()
public
getQuery() : string
Return values
stringgetScore()
public
getScore() : float
Return values
floatgetSort()
public
getSort() : int
Return values
intgetStartDate()
public
getStartDate() : array<string|int, int>
Return values
array<string|int, int>getStatus()
public
getStatus() : int
Return values
intgetType()
public
getType() : string
Return values
stringisGenreExclude()
public
isGenreExclude() : bool
Return values
boolsetChar()
public
setChar(string $char) : MangaSearchRequest
Parameters
- $char : string
Return values
MangaSearchRequestsetEndDate()
public
setEndDate(int $day, int $month, int $year) : $this
Parameters
- $day : int
-
, int $month, int $year
- $month : int
- $year : int
Return values
$thissetGenre()
public
setGenre(array<string|int, mixed>|int ...$genre) : MangaSearchRequest
Parameters
- $genre : array<string|int, mixed>|int
Return values
MangaSearchRequestsetGenreExclude()
public
setGenreExclude(bool $genreExclude) : $this
Parameters
- $genreExclude : bool
Return values
$thissetMagazine()
public
setMagazine(int $magazine) : $this
Parameters
- $magazine : int
Return values
$thissetOrderBy()
public
setOrderBy(int $orderBy) : MangaSearchRequest
Parameters
- $orderBy : int
Return values
MangaSearchRequestsetPage()
public
setPage(int $page) : $this
Parameters
- $page : int
Return values
$thissetQuery()
public
setQuery([null|string $query = null ]) : $this
Parameters
- $query : null|string = null
Return values
$thissetScore()
public
setScore(float $score) : $this
Parameters
- $score : float
Return values
$thissetSort()
public
setSort(int $sort) : MangaSearchRequest
Parameters
- $sort : int
Return values
MangaSearchRequestsetStartDate()
public
setStartDate(int $day, int $month, int $year) : $this
Parameters
- $day : int
-
, int $month, int $year
- $month : int
- $year : int
Return values
$thissetStartsWithChar()
public
setStartsWithChar(string $char) : $this
Parameters
- $char : string
Return values
$thissetStatus()
public
setStatus(int $status) : $this
Parameters
- $status : int
Return values
$thissetType()
public
setType(string $type) : $this
Parameters
- $type : string