src/RequestDecorator.php
function buildPayloadItemInfo($key, $item)
    {
        if (is_object($item)) {
            $key = ($this->getPayloadBuilderKey($item)) ? $this->getPayloadBuilderKey($item) : $key;
            $item = $this->makePayloadBuilder($item);
        }
        return array(
            'key' => $key,
            'item' => $item
        );
    }
function buildPayloadItemInfo($key, $item)
    {
        if (is_object($item)) {
            $key = ($this->getPayloadBuilderKey($item)) ? $this->getPayloadBuilderKey($item) : $key;
            $item = $this->makePayloadBuilder($item);
        }
        return array(
            'key' => $key,
            'item' => $item
        );
    }
function buildPayloadItemInfo ( $ key , $ item ) { if ( is_object ( $ item ) ) { $ key = ( $ this -> getPayloadBuilderKey ( $ item ) ) ? $ this -> getPayloadBuilderKey ( $ item ) : $ key ; $ item = $ this -> makePayloadBuilder ( $ item ) ; } return array ( 'key' => $ key , 'item' => $ item ) ; }
The array_map_deep callback for buildPayload. If the array part is an object, it attempts to make payloadBuilder.

@param $item
@return array
The array_map_deep callback for buildPayload . If the array part is an object it attempts to make payloadBuilder .