Documentation

NewsParser
in package
implements ParserInterface

Class NewsListParser

Table of Contents

Interfaces

ParserInterface
Interface ParserInterface

Properties

$crawler  : Crawler

Methods

__construct()  : mixed
NewsListParser constructor.
getAuthor()  : MalUrl
getComments()  : int
getContent()  : string
getDate()  : DateTimeImmutable
getDiscussionLink()  : string
getImageUrl()  : string
getMalId()  : int
getModel()  : ResourceNews
Return the model
getRelatedEntries()  : array<string|int, mixed>
getRelatedNews()  : array<string|int, mixed>
getTags()  : array<string|int, mixed>
getTitle()  : string
getURL()  : string

Properties

Methods

__construct()

NewsListParser constructor.

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

getComments()

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

getContent()

public getContent() : string
Return values
string

getDate()

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

getImageUrl()

public getImageUrl() : string
Return values
string

getMalId()

public getMalId() : int
Tags
throws
InvalidArgumentException
throws
RuntimeException
Return values
int

getRelatedEntries()

public getRelatedEntries() : array<string|int, mixed>
Tags
throws
InvalidArgumentException
throws
RuntimeException
Return values
array<string|int, mixed>

getRelatedNews()

public getRelatedNews() : array<string|int, mixed>
Tags
throws
InvalidArgumentException
throws
RuntimeException
Return values
array<string|int, mixed>

getTags()

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

getTitle()

public getTitle() : string
Return values
string

getURL()

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

        
On this page

Search results