Documentation

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

Methods

__construct()

NewsListParser constructor.

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

getContent()

public getContent() : string
Return values
string

getDate()

public getDate() : DateTimeImmutable|null
Tags
throws
Exception
Return values
DateTimeImmutable|null

getExcerpt()

public getExcerpt() : string
Return values
string

getImageUrl()

public getImageUrl() : string
Return values
string

getMalId()

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

getRelatedArticles()

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

getRelatedEntries()

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

getTags()

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

getURL()

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

getViews()

public getViews() : int|null
Tags
throws
InvalidArgumentException
Return values
int|null
On this page

Search results