Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • 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
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

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

Interfaces

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

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 Guzzle/Service/Command/OperationResponseParser.php
Methods summary
public static Guzzle\Service\Command\OperationResponseParser
# getInstance( )

Get a cached default instance of the Operation response parser that uses default visitors

Get a cached default instance of the Operation response parser that uses default visitors

Returns

Guzzle\Service\Command\OperationResponseParser

CodeCoverageIgnore

Overrides

Guzzle\Service\Command\DefaultResponseParser::getInstance()
public
# __construct( Guzzle\Service\Command\LocationVisitor\VisitorFlyweight $factory )

Parameters

$factory
Guzzle\Service\Command\LocationVisitor\VisitorFlyweight
$factory Factory to use when creating visitors
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
string
$location Location to associate with the visitor
$visitor
Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface
$visitor Visitor to attach

Returns

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

Overrides

Guzzle\Service\Command\DefaultResponseParser::handleParsing()
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
Guzzle\Service\Description\Parameter
$model Model that defines the structure
$command
Guzzle\Service\Command\CommandInterface
$command Command that performed the operation
$response
Guzzle\Http\Message\Response
$response Response received

Returns

array
Returns the array of result data
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
#
php-coveralls API documentation generated by ApiGen 2.8.0