Class Review

Class Review

Review implements ReviewInterface
Package: Review\Entities
Category: System
Located at Services/Core/Review/Entities/Review.inc.php

Methods summary

public __construct( ReviewRepositoryInterface $repository )

Review constructor.

public store( void ) :

Saves review in database.

public delete( void ) :

Deletes review from database.

public getId( void ) : integer

Returns the review id.

public setId( IdType $id ) :

Sets the review id

public getProductId( void ) : integer

Returns the product id.

public setProductId( IdType $productId ) :

Sets the product id

public getRating( void ) : integer

Returns the rating.

public setRating( IntType $rating ) :

Sets the rating.

public getDateAdded( void ) : DateTime

Returns the added datetime.

public setDateAdded( DateTime $dateAdded ) :

Sets the added datetime.

public getLastModifiedDate( void ) : DateTime

Returns the last modified datetime.

public setLastModifiedDate( DateTime $lastModifiedDate ) :

Sets the last modified datetime.

public getRead( void ) : integer

Returns the number of read.

public setRead( IntType $read ) :

Sets the number of read.

public getLanguageId( void ) : integer

Returns the language id.

public setLanguageId( IntType $languageId ) :

Sets the language id.

public getText( void ) : string

Returns the review text.

public setText( StringType $text ) :

Sets the review text.

public getCustomer( void ) : ReviewCustomerInterface

Returns the review customer.

public setCustomer( ReviewCustomerInterface $customer ) :

Sets the review customer.

Properties summary

protected $id : integer
0
protected $productId : integer

		
protected $rating : integer
0
protected $dateAdded : DateTime

		
protected $lastModifiedDate : DateTime

		
protected $read : integer
0
protected $languageId : integer
1
protected $text : string
''