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

  • Operation
  • Parameter
  • SchemaFormatter
  • SchemaValidator
  • ServiceDescription
  • ServiceDescriptionLoader

Interfaces

  • OperationInterface
  • ServiceDescriptionInterface
  • ValidatorInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class ServiceDescription

A ServiceDescription stores service information based on a service document

Guzzle\Service\Description\ServiceDescription implements Guzzle\Service\Description\ServiceDescriptionInterface
Namespace: Guzzle\Service\Description
Located at Guzzle/Service/Description/ServiceDescription.php
Methods summary
public static Guzzle\Service\Description\ServiceDescription
# factory( string|array $config, array $options = array() )

Parameters

$config
string|array
$config File to build or array of operation information
$options
array
$options Service description factory options

Returns

Guzzle\Service\Description\ServiceDescription
public
# __construct( array $config = array() )

Create a new ServiceDescription

Create a new ServiceDescription

Parameters

$config
array
$config Array of configuration data
public string
# serialize( )

Serialize the service description

Serialize the service description

Returns

string

Implementation of

Serializable::serialize()
public
# unserialize( string|array $json )

Unserialize the service description

Unserialize the service description

Parameters

$json
string|array
$json JSON data

Implementation of

Serializable::unserialize()
public string
# getBaseUrl( )

Get the basePath/baseUrl of the description

Get the basePath/baseUrl of the description

Returns

string

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::getBaseUrl()
public Guzzle\Service\Description\ServiceDescription
# setBaseUrl( string $baseUrl )

Set the baseUrl of the description

Set the baseUrl of the description

Parameters

$baseUrl
string
$baseUrl Base URL of each operation

Returns

Guzzle\Service\Description\ServiceDescription
public array
# getOperations( )

Get the API operations of the service

Get the API operations of the service

Returns

array
Returns an array of Guzzle\Service\Description\OperationInterface objects

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::getOperations()
public boolean
# hasOperation( string $name )

Check if the service has an operation by name

Check if the service has an operation by name

Parameters

$name
string
$name Name of the operation to check

Returns

boolean

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::hasOperation()
public Guzzle\Service\Description\OperationInterface|null
# getOperation( string $name )

Get an API operation by name

Get an API operation by name

Parameters

$name
string
$name Name of the command

Returns

Guzzle\Service\Description\OperationInterface|null

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::getOperation()
public Guzzle\Service\Description\ServiceDescription
# addOperation( Guzzle\Service\Description\OperationInterface $operation )

Add a operation to the service description

Add a operation to the service description

Parameters

$operation
Guzzle\Service\Description\OperationInterface
$operation Operation to add

Returns

Guzzle\Service\Description\ServiceDescription
public Guzzle\Service\Description\Parameter|null
# getModel( string $id )

Get a specific model from the description

Get a specific model from the description

Parameters

$id
string
$id ID of the model

Returns

Guzzle\Service\Description\Parameter|null

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::getModel()
public array
# getModels( )

Get all service description models

Get all service description models

Returns

array

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::getModels()
public boolean
# hasModel( string $id )

Check if the description has a specific model by name

Check if the description has a specific model by name

Parameters

$id
string
$id ID of the model

Returns

boolean

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::hasModel()
public Guzzle\Service\Description\ServiceDescription
# addModel( Guzzle\Service\Description\Parameter $model )

Add a model to the service description

Add a model to the service description

Parameters

$model
Guzzle\Service\Description\Parameter
$model Model to add

Returns

Guzzle\Service\Description\ServiceDescription
public string
# getApiVersion( )

Get the API version of the service

Get the API version of the service

Returns

string

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::getApiVersion()
public string
# getName( )

Get the name of the API

Get the name of the API

Returns

string

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::getName()
public string
# getDescription( )

Get a summary of the purpose of the API

Get a summary of the purpose of the API

Returns

string

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::getDescription()
public null|mixed
# getData( string $key )

Get arbitrary data from the service description that is not part of the Guzzle spec

Get arbitrary data from the service description that is not part of the Guzzle spec

Parameters

$key
string
$key Data key to retrieve

Returns

null|mixed

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::getData()
public Guzzle\Service\Description\ServiceDescription
# setData( string $key, mixed $value )

Set arbitrary data on the service description

Set arbitrary data on the service description

Parameters

$key
string
$key Data key to set
$value
mixed
$value Value to set

Returns

Guzzle\Service\Description\ServiceDescription

Implementation of

Guzzle\Service\Description\ServiceDescriptionInterface::setData()
protected
# fromArray( array $config )

Initialize the state from an array

Initialize the state from an array

Parameters

$config
array
$config Configuration data

Throws

Guzzle\Common\Exception\InvalidArgumentException
Properties summary
protected array $operations array()
#

Array of Guzzle\Service\Description\OperationInterface objects

Array of Guzzle\Service\Description\OperationInterface objects

protected array $models array()
#

Array of API models

Array of API models

protected string $name
#

Name of the API

Name of the API

protected string $apiVersion
#

API version

API version

protected string $description
#

Summary of the API

Summary of the API

protected array $extraData array()
#

Any extra API data

Any extra API data

protected static Guzzle\Service\Description\ServiceDescriptionLoader $descriptionLoader
#

Factory used in factory method

Factory used in factory method

protected string $baseUrl
#

baseUrl/basePath

baseUrl/basePath

php-coveralls API documentation generated by ApiGen 2.8.0