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

  • CartDiscountChangeCartPredicateAction
  • CartDiscountChangeIsActiveAction
  • CartDiscountChangeNameAction
  • CartDiscountChangeRequiresDiscountCodeAction
  • CartDiscountChangeSortOrderAction
  • CartDiscountChangeStackingModeAction
  • CartDiscountChangeTargetAction
  • CartDiscountChangeValueAction
  • CartDiscountSetCustomFieldAction
  • CartDiscountSetCustomTypeAction
  • CartDiscountSetDescriptionAction
  • CartDiscountSetKeyAction
  • CartDiscountSetValidFromAction
  • CartDiscountSetValidFromAndUntilAction
  • CartDiscountSetValidUntilAction

Class CartDiscountChangeSortOrderAction

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\Request\AbstractAction
Extended by Commercetools\Core\Request\CartDiscounts\Command\CartDiscountChangeSortOrderAction
Namespace: Commercetools\Core\Request\CartDiscounts\Command
API documentation: https://docs.commercetools.com/http-api-projects-cartDiscounts.html#change-sort-order
Located at Core/Request/CartDiscounts/Command/CartDiscountChangeSortOrderAction.php

Methods summary

public
# __construct( array $data = [], Commercetools\Core\Model\Common\Context|callable $context = null )

Parameters

$data
$context

Overrides

Commercetools\Core\Model\Common\JsonObject::__construct
public static Commercetools\Core\Request\CartDiscounts\Command\CartDiscountChangeSortOrderAction
# ofSortOrder( string $sortOrder, Commercetools\Core\Model\Common\Context|callable $context = null )

Parameters

$sortOrder
$context

Returns

Commercetools\Core\Request\CartDiscounts\Command\CartDiscountChangeSortOrderAction

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

__get(), hasField(), isOptional()

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

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

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

parentSet(), rootGet(), rootSet()

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

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

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
# getAction( )

Returns

string
public Commercetools\Core\Request\CartDiscounts\Command\CartDiscountChangeSortOrderAction
# setAction( string $action = null )

Parameters

$action

Returns

Commercetools\Core\Request\CartDiscounts\Command\CartDiscountChangeSortOrderAction
public string
# getSortOrder( )

Returns

string
public Commercetools\Core\Request\CartDiscounts\Command\CartDiscountChangeSortOrderAction
# setSortOrder( string $sortOrder = null )

Parameters

$sortOrder

Returns

Commercetools\Core\Request\CartDiscounts\Command\CartDiscountChangeSortOrderAction

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