ArticleParser
in package
implements
ParserInterface
Class ArticleParser
Table of Contents
Interfaces
- ParserInterface
- Interface ParserInterface
Properties
- $crawler : Crawler
Methods
- __construct() : mixed
- NewsListParser constructor.
- getAuthor() : MalUrl
- getContent() : string
- getDate() : DateTimeImmutable|null
- getExcerpt() : string
- getImageUrl() : string
- getMalId() : int
- getModel() : ResourceArticle
- Return the model
- getRelatedArticles() : array<string|int, mixed>
- getRelatedEntries() : array<string|int, mixed>
- getTags() : array<string|int, mixed>
- getTitle() : string
- getURL() : string
- getViews() : int|null
Properties
$crawler
private
Crawler
$crawler
Methods
__construct()
NewsListParser constructor.
public
__construct(Crawler $crawler) : mixed
Parameters
- $crawler : Crawler
getAuthor()
public
getAuthor() : MalUrl
Tags
Return values
MalUrlgetContent()
public
getContent() : string
Return values
stringgetDate()
public
getDate() : DateTimeImmutable|null
Tags
Return values
DateTimeImmutable|nullgetExcerpt()
public
getExcerpt() : string
Return values
stringgetImageUrl()
public
getImageUrl() : string
Return values
stringgetMalId()
public
getMalId() : int
Tags
Return values
intgetModel()
Return the model
public
getModel() : ResourceArticle
Return values
ResourceArticlegetRelatedArticles()
public
getRelatedArticles() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getRelatedEntries()
public
getRelatedEntries() : 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
Tags
Return values
stringgetViews()
public
getViews() : int|null