Composable Commerce PHP SDKPHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • Commercetools
    • Commons
      • Helper
    • Core
      • Builder
        • Request
        • Update
      • Cache
      • Client
        • Adapter
        • OAuth
      • Error
      • Helper
        • Annotate
        • State
          • Renderer
        • Subscriber
          • Log
      • Model
        • ApiClient
        • Cart
        • CartDiscount
        • Category
        • Channel
        • Common
        • Customer
        • CustomerGroup
        • CustomField
        • CustomObject
        • DiscountCode
        • Extension
        • Inventory
        • Message
        • Order
        • OrderEdit
        • Payment
        • Product
          • Search
        • ProductDiscount
        • ProductSelection
        • ProductType
        • Project
        • Review
        • ShippingMethod
        • ShoppingList
        • State
        • Store
        • Subscription
        • TaxCategory
        • Type
        • Zone
      • Request
        • ApiClients
        • CartDiscounts
          • Command
        • Carts
          • Command
        • Categories
          • Command
        • Channels
          • Command
        • CustomerGroups
          • Command
        • Customers
          • Command
        • CustomField
          • Command
        • CustomObjects
        • DiscountCodes
          • Command
        • Extensions
          • Command
        • GraphQL
        • InStores
        • Inventory
          • Command
        • Me
          • Command
        • Messages
        • OrderEdits
          • Command
          • StagedOrder
            • Command
        • Orders
          • Command
        • Payments
          • Command
        • ProductDiscounts
          • Command
        • Products
          • Command
        • ProductSelections
          • Command
        • ProductTypes
          • Command
        • Project
          • Command
        • Query
        • Reviews
          • Command
        • ShippingMethods
          • Command
        • ShoppingLists
          • Command
        • States
          • Command
        • Stores
          • Command
        • Subscriptions
          • Command
        • TaxCategories
          • Command
        • Types
          • Command
        • Zones
          • Command
      • Response

Classes

  • Review
  • ReviewCollection
  • ReviewDraft
  • ReviewRatingStatistics

Class ReviewDraft

Commercetools\Core\Model\Common\AbstractJsonDeserializeObject implements Commercetools\Core\Model\Common\JsonDeserializeInterface, Commercetools\Core\Model\Common\ObjectTreeInterface uses Commercetools\Core\Model\Common\ObjectTreeTrait
Extended by Commercetools\Core\Model\Common\JsonObject implements JsonSerializable uses Commercetools\Core\Model\Common\ContextTrait
Extended by Commercetools\Core\Model\Review\ReviewDraft
Namespace: Commercetools\Core\Model\Review
API documentation: https://docs.commercetools.com/http-api-projects-reviews.html#reviewdraft
Located at Core/Model/Review/ReviewDraft.php

Methods summary

public static Commercetools\Core\Model\Review\ReviewDraft
# ofTitle( string $title, Commercetools\Core\Model\Common\Context|callable $context = null )

Parameters

$title
$context

Returns

Commercetools\Core\Model\Review\ReviewDraft
public static Commercetools\Core\Model\Review\ReviewDraft
# ofText( string $text, Commercetools\Core\Model\Common\Context|callable $context = null )

Parameters

$text
$context

Returns

Commercetools\Core\Model\Review\ReviewDraft
public static Commercetools\Core\Model\Review\ReviewDraft
# ofRating( integer $rating, Commercetools\Core\Model\Common\Context|callable $context = null )

Parameters

$rating
$context

Returns

Commercetools\Core\Model\Review\ReviewDraft
public mixed
# jsonSerialize( )

(PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON

(PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON

Returns

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

Link

http://php.net/manual/en/jsonserializable.jsonserialize.php

Overrides

Commercetools\Core\Model\Common\AbstractJsonDeserializeObject::jsonSerialize

Methods inherited from Commercetools\Core\Model\Common\JsonObject

__construct(), __get(), hasField(), isOptional()

Methods inherited from Commercetools\Core\Model\Common\AbstractJsonDeserializeObject

__sleep(), fromArray(), of(), toArray()

Methods inherited from Commercetools\Core\Model\Common\ContextAwareInterface

getContext(), getContextCallback(), setContext(), setContextIfNull()

Methods inherited from Commercetools\Core\Model\Common\ObjectTreeInterface

parentSet(), rootGet(), rootSet()

Methods used from Commercetools\Core\Model\Common\ContextTrait

getContext(), getContextCallback(), setContext(), setContextIfNull()

Methods used from Commercetools\Core\Model\Common\ObjectTreeTrait

parentSet(), rootGet(), rootSet()

Magic methods summary

public string
# getKey( )

Returns

string
public Commercetools\Core\Model\Review\ReviewDraft
# setKey( string $key = null )

Parameters

$key

Returns

Commercetools\Core\Model\Review\ReviewDraft
public string
# getUniquenessValue( )

Returns

string
public Commercetools\Core\Model\Review\ReviewDraft
# setUniquenessValue( string $uniquenessValue = null )

Parameters

$uniquenessValue

Returns

Commercetools\Core\Model\Review\ReviewDraft
public string
# getLocale( )

Returns

string
public Commercetools\Core\Model\Review\ReviewDraft
# setLocale( string $locale = null )

Parameters

$locale

Returns

Commercetools\Core\Model\Review\ReviewDraft
public string
# getAuthorName( )

Returns

string
public Commercetools\Core\Model\Review\ReviewDraft
# setAuthorName( string $authorName = null )

Parameters

$authorName

Returns

Commercetools\Core\Model\Review\ReviewDraft
public string
# getTitle( )

Returns

string
public Commercetools\Core\Model\Review\ReviewDraft
# setTitle( string $title = null )

Parameters

$title

Returns

Commercetools\Core\Model\Review\ReviewDraft
public string
# getText( )

Returns

string
public Commercetools\Core\Model\Review\ReviewDraft
# setText( string $text = null )

Parameters

$text

Returns

Commercetools\Core\Model\Review\ReviewDraft
public Commercetools\Core\Model\Common\ResourceIdentifier
# getTarget( )

Returns

Commercetools\Core\Model\Common\ResourceIdentifier
public Commercetools\Core\Model\Review\ReviewDraft
# setTarget( Commercetools\Core\Model\Common\ResourceIdentifier $target = null )

Parameters

$target

Returns

Commercetools\Core\Model\Review\ReviewDraft
public Commercetools\Core\Model\State\StateReference
# getState( )

Returns

Commercetools\Core\Model\State\StateReference
public Commercetools\Core\Model\Review\ReviewDraft
# setState( Commercetools\Core\Model\State\StateReference $state = null )

Parameters

$state

Returns

Commercetools\Core\Model\Review\ReviewDraft
public integer
# getRating( )

Returns

integer
public Commercetools\Core\Model\Review\ReviewDraft
# setRating( integer $rating = null )

Parameters

$rating

Returns

Commercetools\Core\Model\Review\ReviewDraft
public Commercetools\Core\Model\Customer\CustomerReference
# getCustomer( )

Returns

Commercetools\Core\Model\Customer\CustomerReference
public Commercetools\Core\Model\Review\ReviewDraft
# setCustomer( Commercetools\Core\Model\Customer\CustomerReference $customer = null )

Parameters

$customer

Returns

Commercetools\Core\Model\Review\ReviewDraft
public Commercetools\Core\Model\CustomField\CustomFieldObject
# getCustom( )

Returns

Commercetools\Core\Model\CustomField\CustomFieldObject
public Commercetools\Core\Model\Review\ReviewDraft
# setCustom( Commercetools\Core\Model\CustomField\CustomFieldObject $custom = null )

Parameters

$custom

Returns

Commercetools\Core\Model\Review\ReviewDraft

Constants summary

Constants inherited from Commercetools\Core\Model\Common\JsonObject

DECORATOR, ELEMENT_TYPE, INITIALIZED, OPTIONAL, TYPE

Constants inherited from Commercetools\Core\Model\Common\AbstractJsonDeserializeObject

JSON_DESERIALIZE_INTERFACE, TYPEABLE_INTERFACE

PHP SDK API documentation generated by ApiGen