HttpClient.php
private function buildBatch($userId)
    {
        $batch = array();

        while ($method = $this->getQueue()->dequeue(MethodInterface::SERVER_PLATFORM)) {
            $batch[] = $this->getMethodData($method, $userId);
        }

        return $batch;
    }
private function buildBatch($userId)
    {
        $batch = array();

        while ($method = $this->getQueue()->dequeue(MethodInterface::SERVER_PLATFORM)) {
            $batch[] = $this->getMethodData($method, $userId);
        }

        return $batch;
    }
private function buildBatch ( $ userId ) { $ batch = array ( ) ; while ( $ method = $ this -> getQueue ( ) -> dequeue ( MethodInterface :: SERVER_PLATFORM ) ) { $ batch [ ] = $ this -> getMethodData ( $ method , $ userId ) ; } return $ batch ; }
Builds the batch of method data for the given user id.

@param string $userId

@return array
Builds the batch of method data for the given user id .