Documentation

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

Properties

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>
Tags
throws
InvalidArgumentException
Return values
array<string|int, MalUrl>

        
On this page

Search results