Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminAccess
    • Collections
    • Deleters
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Managers
    • Readers
    • Writers
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • CustomerGroup
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Serializers
    • Services
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Geschaeftskundenversand
    • Helpers
    • Invoices
    • Orders
    • ParcelShopFinder
    • QuickEdit
    • Serializers
    • Templates
  • Geschaeftskundenversand
    • Exceptions
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Manufacturer
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • OrderStatus
    • Collections
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Repositories
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • QuantityUnit
    • Entities
    • Factories
    • Repositories
  • QuickEdit
    • Interfaces
    • Repositories
  • Review
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Smarty
    • plugins
  • StaticSeoUrl
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • StaticSeoUrls
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects
  • VPE
    • Entities
    • Factories
    • Repositories
  • Withdrawal
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects

Classes

  • Review
  • ReviewCollection

Interfaces

  • ReviewInterface

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.

Review constructor.

Parameters

$repository
public
# store( )

Saves review in database.

Saves review in database.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::store()
public
# delete( )

Deletes review from database.

Deletes review from database.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::delete()
public integer
# getId( )

Returns the review id.

Returns the review id.

Returns

integer
Review id.

Implementation of

ReviewInterface::getId()
public
# setId( IdType $id )

Sets the review id

Sets the review id

Parameters

$id
The review id to be set.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::setId()
public integer
# getProductId( )

Returns the product id.

Returns the product id.

Returns

integer
The product id.

Implementation of

ReviewInterface::getProductId()
public
# setProductId( IdType $productId )

Sets the product id

Sets the product id

Parameters

$productId
The product id to be set.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::setProductId()
public integer
# getRating( )

Returns the rating.

Returns the rating.

Returns

integer
Rating.

Implementation of

ReviewInterface::getRating()
public
# setRating( IntType $rating )

Sets the rating.

Sets the rating.

Parameters

$rating
Rating to be set.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::setRating()
public DateTime
# getDateAdded( )

Returns the added datetime.

Returns the added datetime.

Returns

DateTime

Implementation of

ReviewInterface::getDateAdded()
public
# setDateAdded( DateTime $dateAdded )

Sets the added datetime.

Sets the added datetime.

Parameters

$dateAdded
Date to be set.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::setDateAdded()
public DateTime
# getLastModifiedDate( )

Returns the last modified datetime.

Returns the last modified datetime.

Returns

DateTime
The last modified datetime to be set.

Implementation of

ReviewInterface::getLastModifiedDate()
public
# setLastModifiedDate( DateTime $lastModifiedDate )

Sets the last modified datetime.

Sets the last modified datetime.

Parameters

$lastModifiedDate
The last modified date to be set.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::setLastModifiedDate()
public integer
# getRead( )

Returns the number of read.

Returns the number of read.

Returns

integer
The number of read.

Implementation of

ReviewInterface::getRead()
public
# setRead( IntType $read )

Sets the number of read.

Sets the number of read.

Parameters

$read
Number of read to be set.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::setRead()
public integer
# getLanguageId( )

Returns the language id.

Returns the language id.

Returns

integer
The language id.

Implementation of

ReviewInterface::getLanguageId()
public
# setLanguageId( IntType $languageId )

Sets the language id.

Sets the language id.

Parameters

$languageId
Language id to be set.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::setLanguageId()
public string
# getText( )

Returns the review text.

Returns the review text.

Returns

string
The review text.

Implementation of

ReviewInterface::getText()
public
# setText( StringType $text )

Sets the review text.

Sets the review text.

Parameters

$text
The review text to be set.

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::setText()
public ReviewCustomerInterface
# getCustomer( )

Returns the review customer.

Returns the review customer.

Returns

ReviewCustomerInterface

Implementation of

ReviewInterface::getCustomer()
public
# setCustomer( ReviewCustomerInterface $customer )

Sets the review customer.

Sets the review customer.

Parameters

$customer

Returns


$this|\ReviewInterface Same instance for chained method calls.

Implementation of

ReviewInterface::setCustomer()

Properties summary

protected integer $id
# 0
protected integer $productId
#
protected integer $rating
# 0
protected DateTime $dateAdded
#
protected DateTime $lastModifiedDate
#
protected integer $read
# 0
protected integer $languageId
# 1
protected string $text
# ''
protected ReviewCustomerInterface $customer
#
protected ReviewRepositoryInterface $repository
#
API documentation generated by ApiGen