Documentation

DefaultResponseParser
in package
implements ResponseParserInterface

Default HTTP response parser used to marshal JSON responses into arrays and XML responses into SimpleXMLElement

Interfaces, Classes and Traits

ResponseParserInterface
Parses the HTTP response of a command and sets the appropriate result on a command object

Table of Contents

$instance  : self
getInstance()  : self
parse()  : mixed
Parse the HTTP response received by the command and update the command's result contents
handleParsing()  : mixed

Properties

Methods

getInstance()

public static getInstance() : self
Tags
codeCoverageIgnore
Return values
self

parse()

Parse the HTTP response received by the command and update the command's result contents

public parse(CommandInterface $command) : mixed
Parameters
$command : CommandInterface

Command to parse and update

Return values
mixed

Returns the result to set on the command

Search results