ReviewInterface
in
Interface ReviewInterface
Tags
Table of Contents
- delete() : $this|ReviewInterface
- Deletes review from database.
- getCustomer() : ReviewCustomerInterface
- Returns the review customer.
- getDateAdded() : DateTime
- Returns the added datetime.
- getId() : int
- Returns the review id.
- getLanguageId() : int
- Returns the language id.
- getLastModifiedDate() : DateTime
- Returns the last modified datetime.
- getProductId() : int
- Returns the product id.
- getRating() : int
- Returns the rating.
- getRead() : int
- Returns the number of read.
- getText() : string
- Returns the review text.
- setCustomer() : $this|ReviewInterface
- Sets the review customer.
- setDateAdded() : $this|ReviewInterface
- Sets the added datetime.
- setId() : $this|ReviewInterface
- Sets the review id
- setLanguageId() : $this|ReviewInterface
- Sets the language id.
- setLastModifiedDate() : $this|ReviewInterface
- Sets the last modified datetime.
- setProductId() : $this|ReviewInterface
- Sets the product id
- setRating() : $this|ReviewInterface
- Sets the rating.
- setRead() : $this|ReviewInterface
- Sets the number of read.
- setText() : $this|ReviewInterface
- Sets the review text.
- store() : $this|ReviewInterface
- Saves review in database.
Methods
delete()
Deletes review from database.
public
delete() : $this|ReviewInterface
Return values
$this|ReviewInterface —Same instance for chained method calls.
getCustomer()
Returns the review customer.
public
getCustomer() : ReviewCustomerInterface
Return values
ReviewCustomerInterface —getDateAdded()
Returns the added datetime.
public
getDateAdded() : DateTime
Return values
DateTime —getId()
Returns the review id.
public
getId() : int
Return values
int —Review id.
getLanguageId()
Returns the language id.
public
getLanguageId() : int
Return values
int —The language id.
getLastModifiedDate()
Returns the last modified datetime.
public
getLastModifiedDate() : DateTime
Return values
DateTime —The last modified datetime to be set.
getProductId()
Returns the product id.
public
getProductId() : int
Return values
int —The product id.
getRating()
Returns the rating.
public
getRating() : int
Return values
int —Rating.
getRead()
Returns the number of read.
public
getRead() : int
Return values
int —The number of read.
getText()
Returns the review text.
public
getText() : string
Return values
string —The review text.
setCustomer()
Sets the review customer.
public
setCustomer(ReviewCustomerInterface $customer) : $this|ReviewInterface
Parameters
- $customer : ReviewCustomerInterface
Return values
$this|ReviewInterface —Same instance for chained method calls.
setDateAdded()
Sets the added datetime.
public
setDateAdded(DateTime $dateAdded) : $this|ReviewInterface
Parameters
- $dateAdded : DateTime
-
Date to be set.
Return values
$this|ReviewInterface —Same instance for chained method calls.
setId()
Sets the review id
public
setId(IdType $id) : $this|ReviewInterface
Parameters
- $id : IdType
-
The review id to be set.
Return values
$this|ReviewInterface —Same instance for chained method calls.
setLanguageId()
Sets the language id.
public
setLanguageId(IntType $languageId) : $this|ReviewInterface
Parameters
- $languageId : IntType
-
Language id to be set.
Return values
$this|ReviewInterface —Same instance for chained method calls.
setLastModifiedDate()
Sets the last modified datetime.
public
setLastModifiedDate(DateTime $lastModifiedDate) : $this|ReviewInterface
Parameters
- $lastModifiedDate : DateTime
-
The last modified date to be set.
Return values
$this|ReviewInterface —Same instance for chained method calls.
setProductId()
Sets the product id
public
setProductId(IdType $productId) : $this|ReviewInterface
Parameters
- $productId : IdType
-
The product id to be set.
Return values
$this|ReviewInterface —Same instance for chained method calls.
setRating()
Sets the rating.
public
setRating(IntType $rating) : $this|ReviewInterface
Parameters
- $rating : IntType
-
Rating to be set.
Return values
$this|ReviewInterface —Same instance for chained method calls.
setRead()
Sets the number of read.
public
setRead(IntType $read) : $this|ReviewInterface
Parameters
- $read : IntType
-
Number of read to be set.
Return values
$this|ReviewInterface —Same instance for chained method calls.
setText()
Sets the review text.
public
setText(StringType $text) : $this|ReviewInterface
Parameters
- $text : StringType
-
The review text to be set.
Return values
$this|ReviewInterface —Same instance for chained method calls.
store()
Saves review in database.
public
store() : $this|ReviewInterface
Return values
$this|ReviewInterface —Same instance for chained method calls.