Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • AbstractCommand
  • ClosureCommand
  • CreateResponseClassEvent
  • DefaultRequestSerializer
  • DefaultResponseParser
  • OperationCommand
  • OperationResponseParser

Interfaces

  • CommandInterface
  • RequestSerializerInterface
  • ResponseClassInterface
  • ResponseParserInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class OperationResponseParser

Response parser that attempts to marshal responses into an associative array based on models in a service description

Guzzle\Service\Command\DefaultResponseParser implements Guzzle\Service\Command\ResponseParserInterface
Extended by Guzzle\Service\Command\OperationResponseParser
Namespace: Guzzle\Service\Command
Located at src/Guzzle/Service/Command/OperationResponseParser.php
Methods summary
public static Guzzle\Service\Command\OperationResponseParser
# getInstance( )

Returns

Guzzle\Service\Command\OperationResponseParser

Codecoverageignore

Overrides

Guzzle\Service\Command\DefaultResponseParser::getInstance()
public
# __construct( Guzzle\Service\Command\LocationVisitor\VisitorFlyweight $factory, boolean $schemaInModels = false )

Parameters

$factory
Factory to use when creating visitors
$schemaInModels
Set to true to inject schemas into models
public Guzzle\Service\Command\OperationResponseParser
# addVisitor( string $location, Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface $visitor )

Add a location visitor to the command

Add a location visitor to the command

Parameters

$location
Location to associate with the visitor
$visitor
Visitor to attach

Returns

Guzzle\Service\Command\OperationResponseParser
protected
# handleParsing( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\Response $response, $contentType )

Overrides

Guzzle\Service\Command\DefaultResponseParser::handleParsing()
protected mixed
# parseClass( Guzzle\Service\Command\CommandInterface $command )

Parse a class object

Parse a class object

Parameters

$command
Command to parse into an object

Returns

mixed

Throws

Guzzle\Service\Exception\ResponseClassException
protected array
# visitResult( Guzzle\Service\Description\Parameter $model, Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\Response $response )

Perform transformations on the result array

Perform transformations on the result array

Parameters

$model
Model that defines the structure
$command
Command that performed the operation
$response
Response received

Returns

array
Returns the array of result data
protected
# visitAdditionalProperties( Guzzle\Service\Description\Parameter $model, Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\Response $response, Guzzle\Service\Description\Parameter $additional, & $result, array & $foundVisitors )
Methods inherited from Guzzle\Service\Command\DefaultResponseParser
parse()
Properties summary
protected Guzzle\Service\Command\LocationVisitor\VisitorFlyweight $factory

$factory Visitor factory

$factory Visitor factory

#
protected static Guzzle\Service\Command\OperationResponseParser $instance
#
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen