private function processBatchRequests($input)
    {
        $replies = array();

        foreach ($input as $request) {
            $reply = $this->processRequest($request);

            if ($reply !== null) {
                $replies[] = $reply;
            }
        }

        if (count($replies) === 0) {
            return null;
        }

        return $replies;
    }
private function processBatchRequests($input)
    {
        $replies = array();

        foreach ($input as $request) {
            $reply = $this->processRequest($request);

            if ($reply !== null) {
                $replies[] = $reply;
            }
        }

        if (count($replies) === 0) {
            return null;
        }

        return $replies;
    }
private function processBatchRequests ( $ input ) { $ replies = array ( ) ; foreach ( $ input as $ request ) { $ reply = $ this -> processRequest ( $ request ) ; if ( $ reply !== null ) { $ replies [ ] = $ reply ; } } if ( count ( $ replies ) === 0 ) { return null ; } return $ replies ; }
Processes a batch of user requests, and prepares the response.

@param array $input
Array of request objects.

@return array|null
Returns a response/error object when a query is made.
Returns an array of response/error objects when multiple queries are made.
Returns null when no response is necessary.
Processes a batch of user requests and prepares the response .