NewsListItem
in package
Class AnimeParser
Table of Contents
Properties
- $authorUrl : string
- $authorUsername : string
- $comments : int
- $date : DateTimeImmutable
- $excerpt : string
- $forumUrl : string
- $images : NewsImageResource
- $malId : int|null
- $tags : array<string|int, mixed>
- $title : string
- $url : string
Methods
- fromParser() : NewsListItem
- getAuthorUrl() : string
- getAuthorUsername() : string
- getComments() : int
- getDate() : DateTimeImmutable
- getExcerpt() : string
- getForumUrl() : string
- getImages() : NewsImageResource
- getMalId() : int|null
- getTags() : array<string|int, mixed>
- getTitle() : string
- getUrl() : string
Properties
$authorUrl
private
string
$authorUrl
$authorUsername
private
string
$authorUsername
$comments
private
int
$comments
$date
private
DateTimeImmutable
$date
$excerpt
private
string
$excerpt
$forumUrl
private
string
$forumUrl
$images
private
NewsImageResource
$images
$malId
private
int|null
$malId
$tags
private
array<string|int, mixed>
$tags
$title
private
string
$title
$url
private
string
$url
Methods
fromParser()
public
static fromParser(NewsListItemParser $parser) : NewsListItem
Parameters
- $parser : NewsListItemParser
Tags
Return values
NewsListItemgetAuthorUrl()
public
getAuthorUrl() : string
Return values
stringgetAuthorUsername()
public
getAuthorUsername() : string
Return values
stringgetComments()
public
getComments() : int
Return values
intgetDate()
public
getDate() : DateTimeImmutable
Return values
DateTimeImmutablegetExcerpt()
public
getExcerpt() : string
Return values
stringgetForumUrl()
public
getForumUrl() : string
Return values
stringgetImages()
public
getImages() : NewsImageResource
Return values
NewsImageResourcegetMalId()
public
getMalId() : int|null
Return values
int|nullgetTags()
public
getTags() : array<string|int, mixed>
Return values
array<string|int, mixed>getTitle()
public
getTitle() : string
Return values
stringgetUrl()
public
getUrl() : string