public static function create(array $parsedResponse = null)
    {
        $result        = new ListMessagesResult();
        $queueMessages = array();

        if (!empty($parsedResponse)) {
            $rawMessages = Utilities::getArray($parsedResponse['QueueMessage']);
            foreach ($rawMessages as $value) {
                $message = QueueMessage::createFromListMessages($value);

                $queueMessages[] = $message;
            }
        }
        $result->setQueueMessages($queueMessages);

        return $result;
    }
public static function create(array $parsedResponse = null)
    {
        $result        = new ListMessagesResult();
        $queueMessages = array();

        if (!empty($parsedResponse)) {
            $rawMessages = Utilities::getArray($parsedResponse['QueueMessage']);
            foreach ($rawMessages as $value) {
                $message = QueueMessage::createFromListMessages($value);

                $queueMessages[] = $message;
            }
        }
        $result->setQueueMessages($queueMessages);

        return $result;
    }
public static function create ( array $ parsedResponse = null ) { $ result = new ListMessagesResult ( ) ; $ queueMessages = array ( ) ; if ( ! empty ( $ parsedResponse ) ) { $ rawMessages = Utilities :: getArray ( $ parsedResponse [ 'QueueMessage' ] ) ; foreach ( $ rawMessages as $ value ) { $ message = QueueMessage :: createFromListMessages ( $ value ) ; $ queueMessages [ ] = $ message ; } } $ result -> setQueueMessages ( $ queueMessages ) ; return $ result ; }
Creates ListMessagesResult object from parsed XML response.

@param array $parsedResponse XML response parsed into array.

@internal

@return ListMessagesResult
Creates ListMessagesResult object from parsed XML response .