Documentation

ArticleListItemParser
in package
implements ParserInterface

Class ArticleListItemParser

Table of Contents

Interfaces

ParserInterface
Interface ParserInterface

Properties

$crawler  : Crawler

Methods

__construct()  : mixed
NewsListItemParser constructor.
getAuthor()  : MalUrl
getExcerpt()  : string
getImageUrl()  : string|null
getMalId()  : int|null
getModel()  : ArticleListItem
Return the model
getTags()  : array<string|int, mixed>
getTitle()  : string
getUrl()  : string
getViews()  : int

Properties

Methods

__construct()

NewsListItemParser constructor.

public __construct(Crawler $crawler) : mixed
Parameters
$crawler : Crawler

getExcerpt()

public getExcerpt() : string
Tags
throws
InvalidArgumentException
Return values
string

getImageUrl()

public getImageUrl() : string|null
Tags
throws
InvalidArgumentException
Return values
string|null

getTags()

public getTags() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results