RatingsEntityInterface
extends
EntityInterface
in
Entity model interface for ratings table
Tags
Table of Contents
- getCreated() : DateTime
- Get created date.
- getId() : int|null
- Get identifier (returns null for an uninitialized or non-persisted object).
- getRating() : int
- Get rating.
- getResource() : ResourceEntityInterface
- Get resource.
- getUser() : UserEntityInterface|null
- Get user.
- setCreated() : RatingsEntityInterface
- Set created date.
- setRating() : RatingsEntityInterface
- Set rating.
- setResource() : RatingsEntityInterface
- Set resource.
- setUser() : RatingsEntityInterface
- Set user.
Methods
getCreated()
Get created date.
public
getCreated() : DateTime
Return values
DateTime —getId()
Get identifier (returns null for an uninitialized or non-persisted object).
public
getId() : int|null
Return values
int|null —getRating()
Get rating.
public
getRating() : int
Return values
int —getResource()
Get resource.
public
getResource() : ResourceEntityInterface
Return values
ResourceEntityInterface —getUser()
Get user.
public
getUser() : UserEntityInterface|null
Return values
UserEntityInterface|null —setCreated()
Set created date.
public
setCreated(DateTime $dateTime) : RatingsEntityInterface
Parameters
- $dateTime : DateTime
-
Created date
Return values
RatingsEntityInterface —setRating()
Set rating.
public
setRating(int $rating) : RatingsEntityInterface
Parameters
- $rating : int
-
Rating
Return values
RatingsEntityInterface —setResource()
Set resource.
public
setResource(ResourceEntityInterface $resource) : RatingsEntityInterface
Parameters
- $resource : ResourceEntityInterface
-
Resource
Return values
RatingsEntityInterface —setUser()
Set user.
public
setUser(UserEntityInterface|null $user) : RatingsEntityInterface
Parameters
- $user : UserEntityInterface|null
-
User