src/RequestDecorator.php
function buildPayload(&$payload)
    {
        if (is_array($payload)) {
            $payload = $this->array_map_deep($payload, array($this, 'buildPayloadItemInfo'));
        } else {
            $payload = $this->makePayloadBuilder($payload);
            $this->buildPayload($payload);
        }

        return $payload;
    }
function buildPayload(&$payload)
    {
        if (is_array($payload)) {
            $payload = $this->array_map_deep($payload, array($this, 'buildPayloadItemInfo'));
        } else {
            $payload = $this->makePayloadBuilder($payload);
            $this->buildPayload($payload);
        }

        return $payload;
    }
function buildPayload ( & $ payload ) { if ( is_array ( $ payload ) ) { $ payload = $ this -> array_map_deep ( $ payload , array ( $ this , 'buildPayloadItemInfo' ) ) ; } else { $ payload = $ this -> makePayloadBuilder ( $ payload ) ; $ this -> buildPayload ( $ payload ) ; } return $ payload ; }
Parse the payload to check for PayloadBuilder objects and make them.
@param $payload
@return array
Parse the payload to check for PayloadBuilder objects and make them .