AnimeStatsParser
in package
implements
ParserInterface
Class AnimeStatsParser
Table of Contents
Interfaces
- ParserInterface
- Interface ParserInterface
Properties
- $crawler : Crawler
Methods
- __construct() : mixed
- AnimeParser constructor.
- getCompleted() : int
- getDropped() : int
- getModel() : AnimeStats
- Return the model
- getOnHold() : int
- getPlanToWatch() : int
- getScores() : array<string|int, mixed>
- getTotal() : int
- getWatching() : int
- sanitize() : int
Properties
$crawler
private
Crawler
$crawler
Methods
__construct()
AnimeParser constructor.
public
__construct(Crawler $crawler) : mixed
Parameters
- $crawler : Crawler
getCompleted()
public
getCompleted() : int
Tags
Return values
intgetDropped()
public
getDropped() : int
Tags
Return values
intgetModel()
Return the model
public
getModel() : AnimeStats
Tags
Return values
AnimeStatsgetOnHold()
public
getOnHold() : int
Tags
Return values
intgetPlanToWatch()
public
getPlanToWatch() : int
Tags
Return values
intgetScores()
public
getScores() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getTotal()
public
getTotal() : int
Tags
Return values
intgetWatching()
public
getWatching() : int
Tags
Return values
intsanitize()
private
sanitize( $input) : int