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

  • Renderer

Class Renderer

Namespace: Commercetools\Core\Helper\State
Located at Core/Helper/State/Renderer.php

Methods summary

public array
# getEventColors( )

Returns

array
public
# setEventColors( array $eventColors )

Parameters

$eventColors
public string
# getDefaultFontColor( )

Returns

string
public
# setDefaultFontColor( string $defaultFontColor )

Parameters

$defaultFontColor
public string
# getDefaultBorderColor( )

Returns

string
public
# setDefaultBorderColor( string $defaultBorderColor )

Parameters

$defaultBorderColor
public array
# getNodeRenderers( )

Returns

array
public
# setNodeRenderers( array $nodeRenderers )

Parameters

$nodeRenderers
public array
# getTransitionRenderers( )

Returns

array
public
# setTransitionRenderers( array $transitionRenderers )

Parameters

$transitionRenderers
public boolean
# hasNodeRendererByStateName( $stateName )

Is there a state node renderer for the given state name?

Is there a state node renderer for the given state name?

Parameters

$stateName

Returns

boolean
public Commercetools\Core\Helper\State\Renderer\NodeRenderer
# getNodeRendererByStateName( $stateName )

Get the renderer for the given state name.

Get the renderer for the given state name.

If no renderer was set the default renderer Bob_StateMachine_Renderer_Node_DefaultRenderer() is returned

Parameters

$stateName

Returns

Commercetools\Core\Helper\State\Renderer\NodeRenderer
public
# getTransitionRendererByStateName( $stateName )
public string|boolean
# runDot( string $dotString )

Renders a dot graph into an svg

Renders a dot graph into an svg

Parameters

$dotString
The dot graph that is fed into the

Returns

string|boolean
the resulting SVG
public string
# renderDot( Commercetools\Core\Model\State\StateCollection $stateCollection )

Creates a dot graph for a process

Creates a dot graph for a process

Parameters

$stateCollection

Returns

string
A dot graph
public static string
# run( Commercetools\Core\Client $client, Commercetools\Core\Model\Common\Context $context = null )

Parameters

$client
$context

Returns

string

Properties summary

public static array $colors

Colors for drawing dwh states

Colors for drawing dwh states

# array( '#2266aa', '#228866', '#775533', '#333311', '#881122', '#662266', '#00212E', '#42002E', '#422100', '#000B11', '#5A0011', '#5A0B00' )
PHP SDK API documentation generated by ApiGen