CommentsEntityInterface
extends
EntityInterface
in
Entity model interface for comments table
Tags
Table of Contents
- getComment() : string
- Comment getter
- getCreated() : DateTime
- Created getter
- getId() : int
- Id getter
- getUser() : UserEntityInterface|null
- User getter
- setComment() : Comments
- Comment setter
- setCreated() : Comments
- Created setter.
- setResource() : Comments
- Resource setter.
- setUser() : Comments
- User setter.
Methods
getComment()
Comment getter
public
getComment() : string
Return values
string —getCreated()
Created getter
public
getCreated() : DateTime
Return values
DateTime —getId()
Id getter
public
getId() : int
Return values
int —getUser()
User getter
public
getUser() : UserEntityInterface|null
Return values
UserEntityInterface|null —setComment()
Comment setter
public
setComment(string $comment) : Comments
Parameters
- $comment : string
-
Comment
Return values
Comments —setCreated()
Created setter.
public
setCreated(DateTime $dateTime) : Comments
Parameters
- $dateTime : DateTime
-
Created date
Return values
Comments —setResource()
Resource setter.
public
setResource(ResourceEntityInterface $resource) : Comments
Parameters
- $resource : ResourceEntityInterface
-
Resource id.
Return values
Comments —setUser()
User setter.
public
setUser(UserEntityInterface|null $user) : Comments
Parameters
- $user : UserEntityInterface|null
-
User that created comment