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

  • AbstractApiResponse
  • ErrorResponse
  • PagedQueryResponse
  • PagedSearchResponse
  • ResourceResponse

Interfaces

  • ApiPromiseGetInterface
  • ApiResponseInterface

Interface ApiResponseInterface

Interface ApiResponseInterface

Direct known implementers

Commercetools\Core\Response\AbstractApiResponse

Indirect known implementers

Commercetools\Core\Response\ErrorResponse, Commercetools\Core\Response\PagedQueryResponse, Commercetools\Core\Response\PagedSearchResponse, Commercetools\Core\Response\ResourceResponse

Namespace: Commercetools\Core\Response
Located at Core/Response/ApiResponseInterface.php

Methods summary

public
# toObject( )
public array
# toArray( )

Returns

array
public string
# getBody( )

Returns

string
public boolean
# isError( )

Returns

boolean
public Commercetools\Core\Error\ErrorContainer
# getErrors( )

Returns

Commercetools\Core\Error\ErrorContainer
public Psr\Http\Message\ResponseInterface|Commercetools\Core\Client\Adapter\AdapterPromiseInterface
# getResponse( )

Returns

Psr\Http\Message\ResponseInterface|Commercetools\Core\Client\Adapter\AdapterPromiseInterface
public Commercetools\Core\Request\ClientRequestInterface
# getRequest( )

Returns

Commercetools\Core\Request\ClientRequestInterface
public mixed
# wait( )

Returns

mixed
public Commercetools\Core\Response\ApiResponseInterface
# then( callable $onFulfilled = null, callable $onRejected = null )

Parameters

$onFulfilled
$onRejected

Returns

Commercetools\Core\Response\ApiResponseInterface
public array
# getHeader( string $header )

Parameters

$header

Returns

array
public array
# getHeaders( )

Returns

array
public integer
# getStatusCode( )

Returns

integer
public string|null
# getCorrelationId( )

Returns

string|null
PHP SDK API documentation generated by ApiGen