Producer
extends Results
in package
implements
Pagination
Class Producer
Table of Contents
Interfaces
- Pagination
- Class Pagination
Properties
- $results : array<string|int, mixed>
- $about : string|null
- $count : int
- $established : DateTimeImmutable|null
- $externalLinks : array<string|int, Url>
- $favorites : int|null
- $hasNextPage : bool
- $images : WrapImageResource
- $lastVisiblePage : int
- $malId : int
- $name : string
- $titles : array<string|int, mixed>
- $url : string
Methods
- fromParser() : Producer
- getAbout() : string|null
- getCount() : int
- getEstablished() : DateTimeImmutable|null
- getExternalLinks() : array<string|int, Url>
- getFavorites() : int|null
- getImages() : WrapImageResource
- getLastVisiblePage() : int
- getMalId() : int
- getName() : string
- getResults() : array<string|int, mixed>
- getTitles() : array<string|int, mixed>
- getUrl() : string
- hasNextPage() : bool
- setResults() : Results
Properties
$results
protected
array<string|int, mixed>
$results
= []
$about
private
string|null
$about
$count
private
int
$count
$established
private
DateTimeImmutable|null
$established
$externalLinks
private
array<string|int, Url>
$externalLinks
$favorites
private
int|null
$favorites
$hasNextPage
private
bool
$hasNextPage
= false
$images
private
WrapImageResource
$images
$lastVisiblePage
private
int
$lastVisiblePage
= 1
$malId
private
int
$malId
$name
private
string
$name
Tags
$titles
private
array<string|int, mixed>
$titles
$url
private
string
$url
Methods
fromParser()
public
static fromParser(ProducerParser $parser) : Producer
Parameters
- $parser : ProducerParser
Tags
Return values
ProducergetAbout()
public
getAbout() : string|null
Return values
string|nullgetCount()
public
getCount() : int
Return values
intgetEstablished()
public
getEstablished() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetExternalLinks()
public
getExternalLinks() : array<string|int, Url>
Return values
array<string|int, Url>getFavorites()
public
getFavorites() : int|null
Return values
int|nullgetImages()
public
getImages() : WrapImageResource
Return values
WrapImageResourcegetLastVisiblePage()
public
getLastVisiblePage() : int
Return values
intgetMalId()
public
getMalId() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetResults()
public
getResults() : array<string|int, mixed>
Return values
array<string|int, mixed>getTitles()
public
getTitles() : array<string|int, mixed>
Return values
array<string|int, mixed>getUrl()
public
getUrl() : string
Return values
stringhasNextPage()
public
hasNextPage() : bool
Return values
boolsetResults()
public
setResults(array<string|int, mixed> $results) : Results
Parameters
- $results : array<string|int, mixed>