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

  • CustomObject
  • CustomObjectCollection
  • CustomObjectDraft
  • CustomObjectReference

Class CustomObjectCollection

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\Collection implements Iterator, JsonSerializable, Countable, ArrayAccess uses Commercetools\Core\Model\Common\ContextTrait
Extended by Commercetools\Core\Model\CustomObject\CustomObjectCollection
Namespace: Commercetools\Core\Model\CustomObject
API documentation: https://docs.commercetools.com/http-api-projects-custom-objects.html#customobject
Located at Core/Model/CustomObject/CustomObjectCollection.php

Methods summary

public mixed|null
# getByKey( $key )

Parameters

$key

Returns

mixed|null
public mixed|null
# getByContainerKey( $container, $key )

Parameters

$container
$key

Returns

mixed|null

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

__construct(), add(), count(), current(), getAt(), getBy(), getById(), getType(), key(), next(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), rewind(), setAt(), toArray(), valid()

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

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

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\CustomObject\CustomObject
# current( )

Returns

Commercetools\Core\Model\CustomObject\CustomObject

Overrides

Commercetools\Core\Model\Common\Collection::current
public Commercetools\Core\Model\CustomObject\CustomObjectCollection
# add( Commercetools\Core\Model\CustomObject\CustomObject $element )

Parameters

$element

Returns

Commercetools\Core\Model\CustomObject\CustomObjectCollection

Overrides

Commercetools\Core\Model\Common\Collection::add
public Commercetools\Core\Model\CustomObject\CustomObject
# getAt( $offset )

Parameters

$offset

Returns

Commercetools\Core\Model\CustomObject\CustomObject

Overrides

Commercetools\Core\Model\Common\Collection::getAt
public Commercetools\Core\Model\CustomObject\CustomObject
# getById( $offset )

Parameters

$offset

Returns

Commercetools\Core\Model\CustomObject\CustomObject

Overrides

Commercetools\Core\Model\Common\Collection::getById

Constants summary

string KEY
# 'key'
string CONTAINER
# 'container'

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

COLLECTION_TYPE, ID, TYPE_LIST, TYPE_MAP

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

JSON_DESERIALIZE_INTERFACE, TYPEABLE_INTERFACE

PHP SDK API documentation generated by ApiGen