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
|
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
|
public
|
#
unserialize( string|array $json )
Unserialize the service description
Unserialize the service description
Parameters
- $json
string|array $json JSON data
Implementation of
|
public
string
|
#
getBaseUrl( )
Get the basePath/baseUrl of the description
Get the basePath/baseUrl of the description
Returns
string
Implementation of
|
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
|
public
array
|
#
getOperations( )
Get the API operations of the service
Get the API operations of the service
Returns
Implementation of
|
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
|
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
Implementation of
|
public
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
Implementation of
|
public
array
|
#
getModels( )
Get all service description models
Get all service description models
Returns
array
Implementation of
|
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
|
public
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
|
public
string
|
#
getName( )
Get the name of the API
Returns
string
Implementation of
|
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
|
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
|
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
Implementation of
|
protected
|
#
fromArray( array $config )
Initialize the state from an array
Initialize the state from an array
Parameters
- $config
array $config Configuration data
Throws
|