MalUrlExtractor
in package
Class MalUrlExtractor
Table of Contents
Constants
- TYPE_ANIME = 'anime'
- TYPE_MANGA = 'manga'
Properties
- $crawler : Crawler
- $imageLinks : bool
- $type : string
Methods
- __construct() : mixed
- MalUrlExtractor constructor.
- getMalUrls() : array<string|int, MalUrl>
- Extract all mal urls that begin with BASE_URL/$type
Constants
TYPE_ANIME
public
mixed
TYPE_ANIME
= 'anime'
TYPE_MANGA
public
mixed
TYPE_MANGA
= 'manga'
Properties
$crawler
private
Crawler
$crawler
$imageLinks
private
bool
$imageLinks
$type
private
string
$type
Methods
__construct()
MalUrlExtractor constructor.
public
__construct(Crawler $crawler, string $type[, bool $imageLinks = false ]) : mixed
Parameters
- $crawler : Crawler
- $type : string
- $imageLinks : bool = false
getMalUrls()
Extract all mal urls that begin with BASE_URL/$type
public
getMalUrls() : array<string|int, MalUrl>