Documentation

NewsListItemParser
in package
implements ParserInterface

Class NewsListItemParser

Table of Contents

Interfaces

ParserInterface
Interface ParserInterface

Properties

$crawler  : Crawler

Methods

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

Properties

Methods

__construct()

NewsListItemParser constructor.

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

getComments()

public getComments() : int
Tags
throws
InvalidArgumentException
Return values
int

getDate()

public getDate() : DateTimeImmutable
Tags
throws
InvalidArgumentException
Return values
DateTimeImmutable
public getDiscussionLink() : string
Tags
throws
InvalidArgumentException
Return values
string

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>

getUrl()

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

        
On this page

Search results