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

  • AbstractJsonDeserializeObject
  • Address
  • AddressCollection
  • Asset
  • AssetCollection
  • AssetDimension
  • AssetDraft
  • AssetDraftCollection
  • AssetSource
  • AssetSourceCollection
  • Attribute
  • AttributeCollection
  • CentPrecisionMoney
  • ClientLogging
  • Collection
  • ContainerAndKey
  • Context
  • CreatedBy
  • DateDecorator
  • DateTimeDecorator
  • DiscountedPrice
  • DiscountValue
  • Enum
  • EnumCollection
  • GeoLocation
  • GeoPoint
  • HighPrecisionMoney
  • Image
  • ImageCollection
  • ImageDimension
  • JsonObject
  • KeyReference
  • KeyResourceIdentifier
  • LastModifiedBy
  • LocalizedEnum
  • LocalizedEnumCollection
  • LocalizedString
  • Money
  • MoneyCollection
  • Price
  • PriceCollection
  • PriceDraft
  • PriceDraftCollection
  • PriceTier
  • PriceTierCollection
  • Reference
  • ReferenceCollection
  • Resource
  • ResourceIdentifier
  • ScopedPrice
  • Set
  • TaxedItemPrice
  • TaxedPrice
  • TaxPortion
  • TaxPortionCollection
  • TimeDecorator

Interfaces

  • ContextAwareInterface
  • JsonDeserializeInterface
  • ObjectTreeInterface
  • ReferenceObjectInterface
  • TypeableInterface

Traits

  • ContextTrait
  • LocaleTrait
  • ObjectTreeTrait

Class Resource

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\Common\Resource implements Commercetools\Core\Model\Common\ReferenceObjectInterface

Direct known subclasses

Commercetools\Core\Model\Cart\Cart, Commercetools\Core\Model\CartDiscount\CartDiscount, Commercetools\Core\Model\Message\Message, Commercetools\Core\Model\Order\Order, Commercetools\Core\Model\OrderEdit\OrderEdit, Commercetools\Core\Model\Payment\Payment, Commercetools\Core\Model\Product\Product, Commercetools\Core\Model\ProductDiscount\ProductDiscount, Commercetools\Core\Model\ProductSelection\ProductSelection, Commercetools\Core\Model\ProductType\ProductType, Commercetools\Core\Model\Review\Review, Commercetools\Core\Model\ShippingMethod\ShippingMethod, Commercetools\Core\Model\Category\Category, Commercetools\Core\Model\ShoppingList\MyShoppingListDraft, Commercetools\Core\Model\ShoppingList\ShoppingList, Commercetools\Core\Model\ShoppingList\ShoppingListDraft, Commercetools\Core\Model\State\State, Commercetools\Core\Model\Store\ProductSelectionSetting, Commercetools\Core\Model\Store\Store, Commercetools\Core\Model\Subscription\Subscription, Commercetools\Core\Model\TaxCategory\TaxCategory, Commercetools\Core\Model\Type\Type, Commercetools\Core\Model\Zone\Zone, Commercetools\Core\Model\Channel\Channel, Commercetools\Core\Model\Customer\Customer, Commercetools\Core\Model\CustomerGroup\CustomerGroup, Commercetools\Core\Model\CustomObject\CustomObject, Commercetools\Core\Model\DiscountCode\DiscountCode, Commercetools\Core\Model\Extension\Extension, Commercetools\Core\Model\Inventory\InventoryEntry

Indirect known subclasses

Commercetools\Core\Model\Message\CategoryCreatedMessage, Commercetools\Core\Model\Message\CategorySlugChangedMessage, Commercetools\Core\Model\Message\CustomerEmailVerifiedMessage, Commercetools\Core\Model\Message\CustomerGroupSetMessage, Commercetools\Core\Model\Message\CustomerPasswordUpdatedMessage, Commercetools\Core\Model\Message\CustomLineItemStateTransitionMessage, Commercetools\Core\Model\Message\DeliveryAddedMessage, Commercetools\Core\Model\Message\DeliveryAddressSetMessage, Commercetools\Core\Model\Message\DeliveryItemsUpdatedMessage, Commercetools\Core\Model\Message\DeliveryRemovedMessage, Commercetools\Core\Model\Message\InventoryEntryCreatedMessage, Commercetools\Core\Model\Message\InventoryEntryDeletedMessage, Commercetools\Core\Model\Message\CustomerAddressAddedMessage, Commercetools\Core\Model\Message\InventoryEntryQuantitySetMessage, Commercetools\Core\Model\Message\LineItemStateTransitionMessage, Commercetools\Core\Model\Message\OrderBillingAddressSetMessage, Commercetools\Core\Model\Message\OrderCreatedMessage, Commercetools\Core\Model\Message\OrderCustomerEmailSetMessage, Commercetools\Core\Model\Message\OrderCustomerGroupSetMessage, Commercetools\Core\Model\Message\OrderCustomerSetMessage, Commercetools\Core\Model\Message\OrderDeletedMessage, Commercetools\Core\Model\Message\OrderEditAppliedMessage, Commercetools\Core\Model\Message\OrderImportedMessage, Commercetools\Core\Model\Message\CustomerAddressChangedMessage, Commercetools\Core\Model\Message\OrderLineItemDistributionChannelSetMessage, Commercetools\Core\Model\Message\OrderPaymentAddedMessage, Commercetools\Core\Model\Message\OrderPaymentChangedMessage, Commercetools\Core\Model\Message\OrderReturnInfoSetMessage, Commercetools\Core\Model\Message\OrderShippingAddressSetMessage, Commercetools\Core\Model\Message\OrderStateChangedMessage, Commercetools\Core\Model\Message\OrderStateTransitionMessage, Commercetools\Core\Model\Message\OrderStoreSetMessage, Commercetools\Core\Model\Message\ParcelAddedToDeliveryMessage, Commercetools\Core\Model\Message\ParcelItemsUpdatedMessage, Commercetools\Core\Model\Message\CustomerAddressRemovedMessage, Commercetools\Core\Model\Message\ParcelMeasurementsUpdatedMessage, Commercetools\Core\Model\Message\ParcelRemovedFromDeliveryMessage, Commercetools\Core\Model\Message\ParcelTrackingDataUpdatedMessage, Commercetools\Core\Model\Message\PaymentCreatedMessage, Commercetools\Core\Model\Message\PaymentInteractionAddedMessage, Commercetools\Core\Model\Message\PaymentStatusInterfaceCodeSetMessage, Commercetools\Core\Model\Message\PaymentStatusStateTransitionMessage, Commercetools\Core\Model\Message\PaymentTransactionAddedMessage, Commercetools\Core\Model\Message\PaymentTransactionChangedMessage, Commercetools\Core\Model\Message\PaymentTransactionStateChangedMessage, Commercetools\Core\Model\Message\CustomerCompanyNameSetMessage, Commercetools\Core\Model\Message\ProductAddedToCategoryMessage, Commercetools\Core\Model\Message\ProductCreatedMessage, Commercetools\Core\Model\Message\ProductDeletedMessage, Commercetools\Core\Model\Message\ProductImageAddedMessage, Commercetools\Core\Model\Message\ProductPriceDiscountsSetMessage, Commercetools\Core\Model\Message\ProductPriceExternalDiscountSetMessage, Commercetools\Core\Model\Message\ProductPublishedMessage, Commercetools\Core\Model\Message\ProductRemovedFromCategoryMessage, Commercetools\Core\Model\Message\ProductRevertedStagedChangesMessage, Commercetools\Core\Model\Message\ProductSelectionCreatedMessage, Commercetools\Core\Model\Message\CustomerCreatedMessage, Commercetools\Core\Model\Message\ProductSelectionDeletedMessage, Commercetools\Core\Model\Message\ProductSelectionProductAddedMessage, Commercetools\Core\Model\Message\ProductSelectionProductRemovedMessage, Commercetools\Core\Model\Message\ProductSlugChangedMessage, Commercetools\Core\Model\Message\ProductStateTransitionMessage, Commercetools\Core\Model\Message\ProductUnpublishedMessage, Commercetools\Core\Model\Message\ProductVariantAddedMessage, Commercetools\Core\Model\Message\ProductVariantDeletedMessage, Commercetools\Core\Model\Message\ReviewCreatedMessage, Commercetools\Core\Model\Message\ReviewRatingSetMessage, Commercetools\Core\Model\Message\CustomerDateOfBirthSetMessage, Commercetools\Core\Model\Message\ReviewStateTransitionMessage, Commercetools\Core\Model\Message\StateTransitionMessage, Commercetools\Core\Model\Message\StoreCreatedMessage, Commercetools\Core\Model\Message\StoreDeletedMessage, Commercetools\Core\Model\Message\StoreProductSelectionsChangedMessage, Commercetools\Core\Model\OrderEdit\StagedOrder, Commercetools\Core\Model\Message\CustomerDeletedMessage, Commercetools\Core\Model\Message\CustomerEmailChangedMessage

Abstract
Namespace: Commercetools\Core\Model\Common
Located at Core/Model/Common/Resource.php

Methods summary

public string
# getReferenceIdentifier( )

Returns

string

Implementation of

Commercetools\Core\Model\Common\ReferenceObjectInterface::getReferenceIdentifier()
public Commercetools\Core\Model\Common\Reference
# getReference( )

Returns

Commercetools\Core\Model\Common\Reference

Implementation of

Commercetools\Core\Model\Common\ReferenceObjectInterface::getReference()

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

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

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

__sleep(), fromArray(), jsonSerialize(), 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
# getId( )

Returns

string
public integer
# getVersion( )

Returns

integer
public Commercetools\Core\Model\Common\DateTimeDecorator
# getCreatedAt( )

Returns

Commercetools\Core\Model\Common\DateTimeDecorator
public Commercetools\Core\Model\Common\DateTimeDecorator
# getLastModifiedAt( )

Returns

Commercetools\Core\Model\Common\DateTimeDecorator

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