ResourceArticle
in package
Class ResourceArticle
Table of Contents
Properties
- $authorUrl : string|null
- $authorUsername : string
- $content : string
- $date : DateTimeImmutable
- $excerpt : string
- $images : WrapImageResource
- $malId : int|null
- $relatedArticles : array<string|int, mixed>
- $relatedEntries : array<string|int, MalUrl>
- $tags : array<string|int, mixed>
- $title : string
- $url : string
- $views : int
Methods
- fromParser() : self
- getAuthorUrl() : string
- getAuthorUsername() : string
- getContent() : string
- getDate() : DateTimeImmutable
- getExcerpt() : string
- getImages() : WrapImageResource
- getMalId() : int|null
- getRelatedArticles() : array<string|int, mixed>
- getRelatedEntries() : array<string|int, mixed>
- getTags() : array<string|int, mixed>
- getTitle() : string
- getUrl() : string
- getViews() : int|null
Properties
$authorUrl
private
string|null
$authorUrl
$authorUsername
private
string
$authorUsername
$content
private
string
$content
$date
private
DateTimeImmutable
$date
$excerpt
private
string
$excerpt
$images
private
WrapImageResource
$images
$malId
private
int|null
$malId
$relatedArticles
private
array<string|int, mixed>
$relatedArticles
= []
$relatedEntries
private
array<string|int, MalUrl>
$relatedEntries
= []
$tags
private
array<string|int, mixed>
$tags
$title
private
string
$title
$url
private
string
$url
$views
private
int
$views
Methods
fromParser()
public
static fromParser(ArticleParser $parser) : self
Parameters
- $parser : ArticleParser
Return values
selfgetAuthorUrl()
public
getAuthorUrl() : string
Return values
stringgetAuthorUsername()
public
getAuthorUsername() : string
Return values
stringgetContent()
public
getContent() : string
Return values
stringgetDate()
public
getDate() : DateTimeImmutable
Return values
DateTimeImmutablegetExcerpt()
public
getExcerpt() : string
Return values
stringgetImages()
public
getImages() : WrapImageResource
Return values
WrapImageResourcegetMalId()
public
getMalId() : int|null
Return values
int|nullgetRelatedArticles()
public
getRelatedArticles() : array<string|int, mixed>
Return values
array<string|int, mixed>getRelatedEntries()
public
getRelatedEntries() : array<string|int, mixed>
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
Return values
stringgetViews()
public
getViews() : int|null