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
$crawler
private
Crawler
$crawler
Methods
__construct()
NewsListParser constructor.
public
__construct(Crawler $crawler) : mixed
Parameters
- $crawler : Crawler
getAuthor()
public
getAuthor() : MalUrl
Tags
Return values
MalUrlgetComments()
public
getComments() : int
Tags
Return values
intgetContent()
public
getContent() : string
Return values
stringgetDate()
public
getDate() : DateTimeImmutable
Tags
Return values
DateTimeImmutablegetDiscussionLink()
public
getDiscussionLink() : string
Tags
Return values
stringgetImageUrl()
public
getImageUrl() : string
Return values
stringgetMalId()
public
getMalId() : int
Tags
Return values
intgetModel()
Return the model
public
getModel() : ResourceNews
Return values
ResourceNewsgetRelatedEntries()
public
getRelatedEntries() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getRelatedNews()
public
getRelatedNews() : array<string|int, mixed>
Tags
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
stringgetURL()
public
getURL() : string