\DephpugMessageParse

Class to parse messages in DBGP protocol.

Summary

Methods
Properties
Constants
formatMessage()
xmlBeautifier()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

formatMessage()

formatMessage(string  $message) : string

Format to make message compatible with parse xml.

When dephpugger receive the xml, there is any invalid chars and start with code (three ints). This method remove this to make compatible with simplexml_load_string

Parameters

string $message

String with xml from DBGP

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Returns

string —

Format xml

xmlBeautifier()

xmlBeautifier(string  $xml) : string

Method to get a xml and beautifier to print formated.

Parameters

string $xml

String with xml format

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Returns

string —

Indicates the same xml, but formatted