Skip to content

BlogComment

The BlogComment object represents a single blog comment for blog article in the storefront.

classDiagram
  direction LR
  BlogComment --> DateTime
  BlogComment --> BlogArticle
  class DateTime{
  }
  class BlogArticle{
  }
  class BlogComment{
    int id
    string userName
    string content
    DateTime createdAt
    BlogArticle article
  }

Properties

Attribute name Type Description
id int The unique identifier of the blog comment.
userName string User name of the blog comment.
content string Content of the blog comment.
createdAt DateTime The DateTime object representing a moment the comment was created.
article BlogArticle Reference to the BlogArticle object that represents the article associated with this comment.

Examples

id property

{{ blogComment.id }}
1

userName property

{{ blogComment.userName }}
example user name

content property

{{ blogComment.content }}
example content

createdAt property

{{ blogComment.createdAt }}
19-06-2022 10:10

article property

{{ blogComment.article.name }}
Our laboratory test