AnimeSearchRequest
in package
implements
RequestInterface
Class AnimeSearchRequest
Table of Contents
Interfaces
- RequestInterface
- Interface RequestInterface
Properties
- $char : string
- $endDate : array<string|int, int>
- $genre : array<string|int, int>
- $genreExclude : bool
- $orderBy : int
- $page : int
- $producer : int
- $query : string|null
- $rated : int
- $score : float
- $sort : int
- $startDate : array<string|int, int>
- $status : int
- $type : string
Methods
- __construct() : mixed
- AnimeSearchRequest constructor.
- getChar() : string
- getEndDate() : array<string|int, int>
- getGenre() : array<string|int, int>
- getOrderBy() : int
- getPage() : int
- getPath() : string
- Get the path to request
- getProducer() : int
- getQuery() : string|null
- getRated() : int
- getScore() : float
- getSort() : int
- getStartDate() : array<string|int, int>
- getStatus() : int
- getType() : string
- isGenreExclude() : bool
- setChar() : AnimeSearchRequest
- setEndDate() : $this
- setGenre() : AnimeSearchRequest
- setGenreExclude() : $this
- setOrderBy() : AnimeSearchRequest
- setPage() : $this
- setProducer() : $this
- setQuery() : $this
- setRated() : $this
- setScore() : $this
- setSort() : AnimeSearchRequest
- 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
$orderBy
private
int
$orderBy
$page
private
int
$page
$producer
private
int
$producer
= 0
$query
private
string|null
$query
$rated
private
int
$rated
= 0
$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()
AnimeSearchRequest 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>getOrderBy()
public
getOrderBy() : int
Return values
intgetPage()
public
getPage() : int
Return values
intgetPath()
Get the path to request
public
getPath() : string
Return values
stringgetProducer()
public
getProducer() : int
Return values
intgetQuery()
public
getQuery() : string|null
Return values
string|nullgetRated()
public
getRated() : int
Return values
intgetScore()
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) : AnimeSearchRequest
Parameters
- $char : string
Return values
AnimeSearchRequestsetEndDate()
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) : AnimeSearchRequest
Parameters
- $genre : array<string|int, mixed>|int
Return values
AnimeSearchRequestsetGenreExclude()
public
setGenreExclude(bool $genreExclude) : $this
Parameters
- $genreExclude : bool
Return values
$thissetOrderBy()
public
setOrderBy(int $orderBy) : AnimeSearchRequest
Parameters
- $orderBy : int
Return values
AnimeSearchRequestsetPage()
public
setPage(int $page) : $this
Parameters
- $page : int
Return values
$thissetProducer()
public
setProducer(int $producer) : $this
Parameters
- $producer : int
Return values
$thissetQuery()
public
setQuery([null|string $query = null ]) : $this
Parameters
- $query : null|string = null
Return values
$thissetRated()
public
setRated(int $rated) : $this
Parameters
- $rated : int
Return values
$thissetScore()
public
setScore(float $score) : $this
Parameters
- $score : float
Return values
$thissetSort()
public
setSort(int $sort) : AnimeSearchRequest
Parameters
- $sort : int
Return values
AnimeSearchRequestsetStartDate()
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