Class Review
public __construct( ReviewRepositoryInterface $repository )
ReviewRepositoryInterface
$repository
Review constructor.
public store( void ) :
Saves review in database.
ReviewInterface::store()
public delete( void ) :
Deletes review from database.
ReviewInterface::delete()
public getId( void ) : integer
Returns the review id.
ReviewInterface::getId()
public setId( IdType $id ) :
IdType
$id
Sets the review id
ReviewInterface::setId()
public getProductId( void ) : integer
Returns the product id.
ReviewInterface::getProductId()
public setProductId( IdType $productId ) :
$productId
Sets the product id
ReviewInterface::setProductId()
public getRating( void ) : integer
Returns the rating.
ReviewInterface::getRating()
public setRating( IntType $rating ) :
IntType
$rating
Sets the rating.
ReviewInterface::setRating()
public getDateAdded( void ) : DateTime
Returns the added datetime.
ReviewInterface::getDateAdded()
public setDateAdded( DateTime $dateAdded ) :
$dateAdded
Sets the added datetime.
ReviewInterface::setDateAdded()
public getLastModifiedDate( void ) : DateTime
Returns the last modified datetime.
ReviewInterface::getLastModifiedDate()
public setLastModifiedDate( DateTime $lastModifiedDate ) :
$lastModifiedDate
Sets the last modified datetime.
ReviewInterface::setLastModifiedDate()
public getRead( void ) : integer
Returns the number of read.
ReviewInterface::getRead()
public setRead( IntType $read ) :
$read
Sets the number of read.
ReviewInterface::setRead()
public getLanguageId( void ) : integer
Returns the language id.
ReviewInterface::getLanguageId()
public setLanguageId( IntType $languageId ) :
$languageId
Sets the language id.
ReviewInterface::setLanguageId()
public getText( void ) : string
Returns the review text.
ReviewInterface::getText()
public setText( StringType $text ) :
StringType
$text
Sets the review text.
ReviewInterface::setText()
public getCustomer( void ) : ReviewCustomerInterface
ReviewCustomerInterface
Returns the review customer.
ReviewInterface::getCustomer()
public setCustomer( ReviewCustomerInterface $customer ) :
$customer
Sets the review customer.
ReviewInterface::setCustomer()
protected $id : integer
0
protected $productId : integer
protected $rating : integer
protected $dateAdded : DateTime
protected $lastModifiedDate : DateTime
protected $read : integer
protected $languageId : integer
1
protected $text : string
''
protected $customer : ReviewCustomerInterface
protected $repository : ReviewRepositoryInterface