ResponseParser
final class ResponseParser implements ResponseParserInterface (View source)
CNR ResponseParser
Turns the line-oriented CNR wire format (KEY=value, with list columns under
PROPERTY[NAME][index]) into the response hash. Instantiable and stateless —
see {\CNIC\ResponseParserInterface} for why the parse step is a seam rather
than a static call.
Methods
array
parse(string $raw, array $cmd = [])
Method to parse plain API response into js object
Details
array
parse(string $raw, array $cmd = [])
Method to parse plain API response into js object
The CNR wire format is self-describing, so $cmd is accepted only to keep the contract uniform across brands (IBS needs it to pick its JSON or plain-text branch) and is deliberately unused here.