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

  • CustomFieldObject
  • CustomFieldObjectCollection
  • CustomFieldObjectDraft
  • CustomFieldObjectDraftCollection
  • FieldContainer

Class FieldContainer

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\CustomField\FieldContainer
Namespace: Commercetools\Core\Model\CustomField
API documentation: https://docs.commercetools.com/http-api-projects-custom-fields.html#customfields
Located at Core/Model/CustomField/FieldContainer.php

Methods summary

public Commercetools\Core\Model\CustomField\FieldContainer
# set( string $field, mixed $value )

Parameters

$field
$value

Returns

Commercetools\Core\Model\CustomField\FieldContainer
$this
public boolean
# getFieldAsBool( $name )

Returns

boolean
public float
# getFieldAsNumber( $name )

Returns

float
public integer
# getFieldAsInteger( $name )

Returns

integer
public string
# getFieldAsString( $name )

Returns

string
public Commercetools\Core\Model\Common\LocalizedString
# getFieldAsLocalizedString( $name )

Returns

Commercetools\Core\Model\Common\LocalizedString
public Commercetools\Core\Model\Common\LocalizedEnum
# getFieldAsLocalizedEnum( $name )

Returns

Commercetools\Core\Model\Common\LocalizedEnum
public Commercetools\Core\Model\Common\Enum
# getFieldAsEnum( $name )

Returns

Commercetools\Core\Model\Common\Enum
public Commercetools\Core\Model\Common\Money
# getFieldAsMoney( $name )

Returns

Commercetools\Core\Model\Common\Money
public Commercetools\Core\Model\Common\DateDecorator
# getFieldAsDate( $name )

Returns

Commercetools\Core\Model\Common\DateDecorator
public Commercetools\Core\Model\Common\TimeDecorator
# getFieldAsTime( $name )

Returns

Commercetools\Core\Model\Common\TimeDecorator
public Commercetools\Core\Model\Common\DateTimeDecorator
# getFieldAsDateTime( $name )

Returns

Commercetools\Core\Model\Common\DateTimeDecorator
public Commercetools\Core\Model\Common\Reference
# getFieldAsReference( $name )

Returns

Commercetools\Core\Model\Common\Reference
public Commercetools\Core\Model\Common\Set
# getFieldAsBoolSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsNumberSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsIntegerSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsStringSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsLocalizedStringSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsLocalizedEnumSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsEnumSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsMoneySet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsDateSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsTimeSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsDateTimeSet( $name )

Returns

Commercetools\Core\Model\Common\Set
public Commercetools\Core\Model\Common\Set
# getFieldAsReferenceSet( $name )

Returns

Commercetools\Core\Model\Common\Set

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

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