Documentation

Anime
in package

Class AnimeParser

Table of Contents

Properties

$aired  : DateRange
$airing  : bool
$approved  : bool
$background  : string|null
$broadcast  : string|null
$demographics  : array<string|int, MalUrl>
$duration  : string|null
$endingThemes  : array<string|int, string>
$episodes  : int|null
$explicitGenres  : array<string|int, MalUrl>
$externalLinks  : array<string|int, Url>
$favorites  : int|null
$genres  : array<string|int, MalUrl>
$images  : CommonImageResource
$licensors  : array<string|int, MalUrl>
$malId  : int
$members  : int|null
$openingThemes  : array<string|int, string>
$popularity  : int|null
$premiered  : string|null
$producers  : array<string|int, MalUrl>
$rank  : int|null
$rating  : string|null
$related  : array<string|int, MalUrl>
$score  : float|null
$scoredBy  : int|null
$source  : string|null
$status  : string|null
$streamingLinks  : array<string|int, Url>
$studios  : array<string|int, MalUrl>
$synopsis  : string|null
$themes  : array<string|int, MalUrl>
$title  : string
$titleEnglish  : string|null
$titleJapanese  : string|null
$titles  : array<string|int, Title>
$titleSynonyms  : array<string|int, string>
$trailer  : YoutubeMeta
$type  : string|null
$url  : string

Methods

fromParser()  : Anime
Create an instance from an AnimeParser parser
getAired()  : DateRange
getBackground()  : string|null
getBroadcast()  : string|null
getDemographics()  : array<string|int, MalUrl>
getDuration()  : string
getEndingThemes()  : array<string|int, string>
getEpisodes()  : int|null
getExplicitGenres()  : array<string|int, MalUrl>
getExternalLinks()  : array<string|int, Url>
getFavorites()  : int|null
getGenres()  : array<string|int, MalUrl>
getImages()  : CommonImageResource
getLicensors()  : array<string|int, MalUrl>
getMalId()  : int
getMembers()  : int|null
getOpeningThemes()  : array<string|int, string>
getPopularity()  : int|null
getPremiered()  : string|null
getProducers()  : array<string|int, MalUrl>
getRank()  : int|null
getRating()  : string|null
getRelated()  : array<string|int, MalUrl>
getScore()  : float|null
getScoredBy()  : int|null
getSource()  : string|null
getStatus()  : string|null
getStreamingLinks()  : array<string|int, Url>
getStudios()  : array<string|int, MalUrl>
getSynopsis()  : string|null
getThemes()  : array<string|int, MalUrl>
getTitle()  : string
getTitleEnglish()  : string|null
getTitleJapanese()  : string|null
getTitles()  : array<string|int, Title>
getTitleSynonyms()  : array<string|int, string>
getTrailer()  : YoutubeMeta
getType()  : string|null
getUrl()  : string
isAiring()  : bool
isApproved()  : bool

Properties

$airing

private bool $airing = false

$approved

private bool $approved

$background

private string|null $background

$broadcast

private string|null $broadcast

$demographics

private array<string|int, MalUrl> $demographics = []

$duration

private string|null $duration

$endingThemes

private array<string|int, string> $endingThemes = []

$episodes

private int|null $episodes

$explicitGenres

private array<string|int, MalUrl> $explicitGenres = []
private array<string|int, Url> $externalLinks = []

$favorites

private int|null $favorites

$licensors

private array<string|int, MalUrl> $licensors = []

$members

private int|null $members

$openingThemes

private array<string|int, string> $openingThemes = []

$popularity

private int|null $popularity

$premiered

private string|null $premiered

$producers

private array<string|int, MalUrl> $producers = []

$rank

private int|null $rank

$rating

private string|null $rating

$score

private float|null $score

$scoredBy

private int|null $scoredBy

$source

private string|null $source

$status

private string|null $status
private array<string|int, Url> $streamingLinks = []

$synopsis

private string|null $synopsis

$title

private string $title

$titleEnglish

private string|null $titleEnglish

$titleJapanese

private string|null $titleJapanese

$titleSynonyms

private array<string|int, string> $titleSynonyms

$type

private string|null $type

Methods

fromParser()

Create an instance from an AnimeParser parser

public static fromParser(AnimeParser $parser) : Anime
Parameters
$parser : AnimeParser
Tags
throws
RuntimeException
throws
InvalidArgumentException
Return values
Anime

getBackground()

public getBackground() : string|null
Return values
string|null

getBroadcast()

public getBroadcast() : string|null
Return values
string|null

getDemographics()

public getDemographics() : array<string|int, MalUrl>
Return values
array<string|int, MalUrl>

getDuration()

public getDuration() : string
Return values
string

getEndingThemes()

public getEndingThemes() : array<string|int, string>
Return values
array<string|int, string>

getEpisodes()

public getEpisodes() : int|null
Return values
int|null

getExplicitGenres()

public getExplicitGenres() : array<string|int, MalUrl>
Return values
array<string|int, MalUrl>
public getExternalLinks() : array<string|int, Url>
Return values
array<string|int, Url>

getFavorites()

public getFavorites() : int|null
Return values
int|null

getGenres()

public getGenres() : array<string|int, MalUrl>
Return values
array<string|int, MalUrl>

getLicensors()

public getLicensors() : array<string|int, MalUrl>
Return values
array<string|int, MalUrl>

getMalId()

public getMalId() : int
Return values
int

getMembers()

public getMembers() : int|null
Return values
int|null

getOpeningThemes()

public getOpeningThemes() : array<string|int, string>
Return values
array<string|int, string>

getPopularity()

public getPopularity() : int|null
Return values
int|null

getPremiered()

public getPremiered() : string|null
Return values
string|null

getProducers()

public getProducers() : array<string|int, MalUrl>
Return values
array<string|int, MalUrl>

getRank()

public getRank() : int|null
Return values
int|null

getRating()

public getRating() : string|null
Return values
string|null

getRelated()

public getRelated() : array<string|int, MalUrl>
Return values
array<string|int, MalUrl>

getScore()

public getScore() : float|null
Return values
float|null

getScoredBy()

public getScoredBy() : int|null
Return values
int|null

getSource()

public getSource() : string|null
Return values
string|null

getStatus()

public getStatus() : string|null
Return values
string|null
public getStreamingLinks() : array<string|int, Url>
Return values
array<string|int, Url>

getStudios()

public getStudios() : array<string|int, MalUrl>
Return values
array<string|int, MalUrl>

getSynopsis()

public getSynopsis() : string|null
Return values
string|null

getThemes()

public getThemes() : array<string|int, MalUrl>
Return values
array<string|int, MalUrl>

getTitle()

public getTitle() : string
Tags
deprecated

Use instead.

Return values
string

getTitleEnglish()

public getTitleEnglish() : string|null
Tags
deprecated

Use instead.

Return values
string|null

getTitleJapanese()

public getTitleJapanese() : string|null
Tags
deprecated

Use instead.

Return values
string|null

getTitles()

public getTitles() : array<string|int, Title>
Return values
array<string|int, Title>

getTitleSynonyms()

public getTitleSynonyms() : array<string|int, string>
Tags
deprecated

Use instead.

Return values
array<string|int, string>

getType()

public getType() : string|null
Return values
string|null

getUrl()

public getUrl() : string
Return values
string

isAiring()

public isAiring() : bool
Return values
bool

isApproved()

public isApproved() : bool
Return values
bool

        
On this page

Search results