AnimeReviewsRequest
in package
implements
RequestInterface
Class AnimeReviewsRequest
Table of Contents
Interfaces
- RequestInterface
- Interface RequestInterface
Properties
- $id : int
- $page : int
- $preliminary : bool
- $sort : string
- $spoilers : bool
Methods
- __construct() : mixed
- AnimeReviewsRequest constructor.
- getId() : int
- getPage() : int
- getPath() : string
- Get the path to request
- getSort() : string
- isPreliminary() : bool
- isSpoilers() : bool
Properties
$id
private
int
$id
$page
private
int
$page
$preliminary
private
bool
$preliminary
$sort
private
string
$sort
$spoilers
private
bool
$spoilers
Methods
__construct()
AnimeReviewsRequest constructor.
public
__construct(int $id[, int $page = 1 ][, string $sort = Constants::REVIEWS_SORT_MOST_VOTED ][, bool $spoilers = true ][, bool $preliminary = true ]) : mixed
Parameters
- $id : int
- $page : int = 1
- $sort : string = Constants::REVIEWS_SORT_MOST_VOTED
- $spoilers : bool = true
- $preliminary : bool = true
getId()
public
getId() : int
Return values
intgetPage()
public
getPage() : int
Return values
intgetPath()
Get the path to request
public
getPath() : string
Return values
stringgetSort()
public
getSort() : string
Return values
stringisPreliminary()
public
isPreliminary() : bool
Return values
boolisSpoilers()
public
isSpoilers() : bool