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

  • VisitorFlyweight
  • Overview
  • Namespace
  • Class
  • Tree

Class VisitorFlyweight

Flyweight factory used to instantiate request and response visitors

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

Returns

Guzzle\Service\Command\LocationVisitor\VisitorFlyweight

Codecoverageignore

public
# __construct( array $mappings = null )

Parameters

$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
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
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
Name of the visitor
$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
Name of the visitor
$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

Default array of mappings of location names to classes

Default array of mappings of location names to classes

# 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.responseBody' => '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' )
protected array $mappings

Array of mappings of location names to classes

Array of mappings of location names to classes

#
protected array $cache

Cache of instantiated visitors

Cache of instantiated visitors

# array()
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen