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

  • VisitorFlyweight
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class VisitorFlyweight

Flyweight factory used to instantiate request and response visitors

Namespace: Guzzle\Service\Command\LocationVisitor
Located at Guzzle/Service/Command/LocationVisitor/VisitorFlyweight.php
Methods summary
public static Guzzle\Service\Command\LocationVisitor\VisitorFlyweight
# getInstance( )

Get a cached instance of the flyweight factory

Get a cached instance of the flyweight factory

Returns

Guzzle\Service\Command\LocationVisitor\VisitorFlyweight

CodeCoverageIgnore

public
# __construct( array $mappings = null )

Create a new flyweight

Create a new flyweight

Parameters

$mappings
array
$mappings Array mapping request.name and response.name to location visitor classes. Leave null to use the default values.
public Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface
# getRequestVisitor( string $visitor )

Get an instance of a request visitor by location name

Get an instance of a request visitor by location name

Parameters

$visitor
string
$visitor Visitor name

Returns

Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface
public Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface
# getResponseVisitor( string $visitor )

Get an instance of a response visitor by location name

Get an instance of a response visitor by location name

Parameters

$visitor
string
$visitor Visitor name

Returns

Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface
public Guzzle\Service\Command\LocationVisitor\VisitorFlyweight
# addRequestVisitor( string $name, Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface $visitor )

Add a response visitor to the factory by name

Add a response visitor to the factory by name

Parameters

$name
string
$name Name of the visitor
$visitor
Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface
$visitor Visitor to add

Returns

Guzzle\Service\Command\LocationVisitor\VisitorFlyweight
public Guzzle\Service\Command\LocationVisitor\VisitorFlyweight
# addResponseVisitor( string $name, Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface $visitor )

Add a response visitor to the factory by name

Add a response visitor to the factory by name

Parameters

$name
string
$name Name of the visitor
$visitor
Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface
$visitor Visitor to add

Returns

Guzzle\Service\Command\LocationVisitor\VisitorFlyweight
Properties summary
protected static Guzzle\Service\Command\LocationVisitor\VisitorFlyweight $instance
#

Singleton instance of self

Singleton instance of self

protected static array $defaultMappings array( 'request.body' => 'Guzzle\Service\Command\LocationVisitor\Request\BodyVisitor', 'request.header' => 'Guzzle\Service\Command\LocationVisitor\Request\HeaderVisitor', 'request.json' => 'Guzzle\Service\Command\LocationVisitor\Request\JsonVisitor', 'request.postField' => 'Guzzle\Service\Command\LocationVisitor\Request\PostFieldVisitor', 'request.postFile' => 'Guzzle\Service\Command\LocationVisitor\Request\PostFileVisitor', 'request.query' => 'Guzzle\Service\Command\LocationVisitor\Request\QueryVisitor', 'request.response_body' => 'Guzzle\Service\Command\LocationVisitor\Request\ResponseBodyVisitor', 'request.xml' => 'Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor', 'response.body' => 'Guzzle\Service\Command\LocationVisitor\Response\BodyVisitor', 'response.header' => 'Guzzle\Service\Command\LocationVisitor\Response\HeaderVisitor', 'response.json' => 'Guzzle\Service\Command\LocationVisitor\Response\JsonVisitor', 'response.reasonPhrase' => 'Guzzle\Service\Command\LocationVisitor\Response\ReasonPhraseVisitor', 'response.statusCode' => 'Guzzle\Service\Command\LocationVisitor\Response\StatusCodeVisitor', 'response.xml' => 'Guzzle\Service\Command\LocationVisitor\Response\XmlVisitor' )
#

Default array of mappings of location names to classes

Default array of mappings of location names to classes

protected array $mappings
#

Array of mappings of location names to classes

Array of mappings of location names to classes

protected array $cache array()
#

Cache of instantiated visitors

Cache of instantiated visitors

php-coveralls API documentation generated by ApiGen 2.8.0