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

  • Category
  • CategoryCollection
  • CategoryDraft
  • CategoryReference
  • CategoryReferenceCollection

Class CategoryDraft

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\Category\CategoryDraft
Namespace: Commercetools\Core\Model\Category
API documentation: https://docs.commercetools.com/http-api-projects-categories.html#categorydraft
Located at Core/Model/Category/CategoryDraft.php

Methods summary

public static Commercetools\Core\Model\Category\CategoryDraft
# ofNameAndSlug( Commercetools\Core\Model\Common\LocalizedString $name, Commercetools\Core\Model\Common\LocalizedString $slug, Commercetools\Core\Model\Common\Context|callable $context = null )

Parameters

$name
$slug
$context

Returns

Commercetools\Core\Model\Category\CategoryDraft

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 Commercetools\Core\Model\Common\LocalizedString
# getName( )

Returns

Commercetools\Core\Model\Common\LocalizedString
public Commercetools\Core\Model\Common\LocalizedString
# getSlug( )

Returns

Commercetools\Core\Model\Common\LocalizedString
public Commercetools\Core\Model\Common\LocalizedString
# getDescription( )

Returns

Commercetools\Core\Model\Common\LocalizedString
public Commercetools\Core\Model\Category\CategoryReference
# getParent( )

Returns

Commercetools\Core\Model\Category\CategoryReference
public string
# getOrderHint( )

Returns

string
public string
# getExternalId( )

Returns

string
public Commercetools\Core\Model\Category\CategoryDraft
# setName( Commercetools\Core\Model\Common\LocalizedString $name = null )

Parameters

$name

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\Category\CategoryDraft
# setSlug( Commercetools\Core\Model\Common\LocalizedString $slug = null )

Parameters

$slug

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\Category\CategoryDraft
# setDescription( Commercetools\Core\Model\Common\LocalizedString $description = null )

Parameters

$description

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\Category\CategoryDraft
# setParent( Commercetools\Core\Model\Category\CategoryReference $parent = null )

Parameters

$parent

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\Category\CategoryDraft
# setOrderHint( string $orderHint = null )

Parameters

$orderHint

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\Category\CategoryDraft
# setExternalId( string $externalId = null )

Parameters

$externalId

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\CustomField\CustomFieldObjectDraft
# getCustom( )

Returns

Commercetools\Core\Model\CustomField\CustomFieldObjectDraft
public Commercetools\Core\Model\Category\CategoryDraft
# setCustom( Commercetools\Core\Model\CustomField\CustomFieldObjectDraft $custom = null )

Parameters

$custom

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\Common\LocalizedString
# getMetaDescription( )

Returns

Commercetools\Core\Model\Common\LocalizedString
public Commercetools\Core\Model\Category\CategoryDraft
# setMetaDescription( Commercetools\Core\Model\Common\LocalizedString $metaDescription = null )

Parameters

$metaDescription

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\Common\LocalizedString
# getMetaTitle( )

Returns

Commercetools\Core\Model\Common\LocalizedString
public Commercetools\Core\Model\Category\CategoryDraft
# setMetaTitle( Commercetools\Core\Model\Common\LocalizedString $metaTitle = null )

Parameters

$metaTitle

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\Common\LocalizedString
# getMetaKeywords( )

Returns

Commercetools\Core\Model\Common\LocalizedString
public Commercetools\Core\Model\Category\CategoryDraft
# setMetaKeywords( Commercetools\Core\Model\Common\LocalizedString $metaKeywords = null )

Parameters

$metaKeywords

Returns

Commercetools\Core\Model\Category\CategoryDraft
public Commercetools\Core\Model\Common\AssetDraftCollection
# getAssets( )

Returns

Commercetools\Core\Model\Common\AssetDraftCollection
public Commercetools\Core\Model\Category\CategoryDraft
# setAssets( Commercetools\Core\Model\Common\AssetDraftCollection $assets = null )

Parameters

$assets

Returns

Commercetools\Core\Model\Category\CategoryDraft
public string
# getKey( )

Returns

string
public Commercetools\Core\Model\Category\CategoryDraft
# setKey( string $key = null )

Parameters

$key

Returns

Commercetools\Core\Model\Category\CategoryDraft

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