Open Journal Systems  3.3.0
Guzzle\Service\Description\OperationInterface Interface Reference
Inheritance diagram for Guzzle\Service\Description\OperationInterface:
Guzzle\Common\ToArrayInterface Guzzle\Service\Description\Operation

Public Member Functions

 getClass ()
 
 getData ($name)
 
 getDeprecated ()
 
 getDocumentationUrl ()
 
 getErrorResponses ()
 
 getHttpMethod ()
 
 getName ()
 
 getNotes ()
 
 getParam ($param)
 
 getParamNames ()
 
 getParams ()
 
 getResponseClass ()
 
 getResponseNotes ()
 
 getResponseType ()
 
 getServiceDescription ()
 
 getSummary ()
 
 getUri ()
 
 hasParam ($name)
 
 setServiceDescription (ServiceDescriptionInterface $description)
 
- Public Member Functions inherited from Guzzle\Common\ToArrayInterface
 toArray ()
 

Data Fields

const TYPE_CLASS = 'class'
 
const TYPE_DOCUMENTATION = 'documentation'
 
const TYPE_MODEL = 'model'
 
const TYPE_PRIMITIVE = 'primitive'
 

Detailed Description

Interface defining data objects that hold the information of an API operation

Definition at line 10 of file OperationInterface.php.

Member Function Documentation

◆ getClass()

Guzzle\Service\Description\OperationInterface::getClass ( )

Get the concrete operation class that implements this operation

Returns
string

Implemented in Guzzle\Service\Description\Operation.

◆ getData()

Guzzle\Service\Description\OperationInterface::getData (   $name)

Get extra data from the operation

Parameters
string$nameName of the data point to retrieve
Returns
mixed|null

Implemented in Guzzle\Service\Description\Operation.

◆ getDeprecated()

Guzzle\Service\Description\OperationInterface::getDeprecated ( )

Get whether or not the operation is deprecated

Returns
bool

Implemented in Guzzle\Service\Description\Operation.

◆ getDocumentationUrl()

Guzzle\Service\Description\OperationInterface::getDocumentationUrl ( )

Get the documentation URL of the operation

Returns
string|null

Implemented in Guzzle\Service\Description\Operation.

◆ getErrorResponses()

Guzzle\Service\Description\OperationInterface::getErrorResponses ( )

Get the errors that could be encountered when executing the operation

Returns
array

Implemented in Guzzle\Service\Description\Operation.

◆ getHttpMethod()

Guzzle\Service\Description\OperationInterface::getHttpMethod ( )

Get the HTTP method of the operation

Returns
string|null

Implemented in Guzzle\Service\Description\Operation.

◆ getName()

Guzzle\Service\Description\OperationInterface::getName ( )

Get the name of the operation

Returns
string|null

Implemented in Guzzle\Service\Description\Operation.

Referenced by Guzzle\Service\Description\ServiceDescription\addOperation().

◆ getNotes()

Guzzle\Service\Description\OperationInterface::getNotes ( )

Get a longer text field to explain the behavior of the operation

Returns
string|null

Implemented in Guzzle\Service\Description\Operation.

◆ getParam()

Guzzle\Service\Description\OperationInterface::getParam (   $param)

Get a single parameter of the operation

Parameters
string$paramParameter to retrieve by name
Returns
Parameter|null

Implemented in Guzzle\Service\Description\Operation.

◆ getParamNames()

Guzzle\Service\Description\OperationInterface::getParamNames ( )

Returns an array of parameter names

Returns
array

Implemented in Guzzle\Service\Description\Operation.

◆ getParams()

Guzzle\Service\Description\OperationInterface::getParams ( )

Get the params of the operation

Returns
array

Implemented in Guzzle\Service\Description\Operation.

◆ getResponseClass()

Guzzle\Service\Description\OperationInterface::getResponseClass ( )

Get what is returned from the method. Can be a primitive, class name, or model. For example, the responseClass could be 'array', which would inherently use a responseType of 'primitive'. Using a class name would set a responseType of 'class'. Specifying a model by ID will use a responseType of 'model'.

Returns
string|null

Implemented in Guzzle\Service\Description\Operation.

◆ getResponseNotes()

Guzzle\Service\Description\OperationInterface::getResponseNotes ( )

Get notes about the response of the operation

Returns
string|null

Implemented in Guzzle\Service\Description\Operation.

◆ getResponseType()

Guzzle\Service\Description\OperationInterface::getResponseType ( )

Get information about how the response is unmarshalled: One of 'primitive', 'class', 'model', or 'documentation'

Returns
string

Implemented in Guzzle\Service\Description\Operation.

◆ getServiceDescription()

Guzzle\Service\Description\OperationInterface::getServiceDescription ( )

Get the service description that the operation belongs to

Returns
ServiceDescriptionInterface|null

Implemented in Guzzle\Service\Description\Operation.

◆ getSummary()

Guzzle\Service\Description\OperationInterface::getSummary ( )

Get a short summary of what the operation does

Returns
string|null

Implemented in Guzzle\Service\Description\Operation.

◆ getUri()

Guzzle\Service\Description\OperationInterface::getUri ( )

Get the URI that will be merged into the generated request

Returns
string

Implemented in Guzzle\Service\Description\Operation.

◆ hasParam()

Guzzle\Service\Description\OperationInterface::hasParam (   $name)

Check if the operation has a specific parameter by name

Parameters
string$nameName of the param
Returns
bool

Implemented in Guzzle\Service\Description\Operation.

Referenced by Guzzle\Service\Command\DefaultRequestSerializer\prepareAdditionalParameters().

◆ setServiceDescription()

Guzzle\Service\Description\OperationInterface::setServiceDescription ( ServiceDescriptionInterface  $description)

Set the service description that the operation belongs to

Parameters
ServiceDescriptionInterface$descriptionService description
Returns
self

Implemented in Guzzle\Service\Description\Operation.

Referenced by Guzzle\Service\Description\ServiceDescription\addOperation().

Field Documentation

◆ TYPE_CLASS

const Guzzle\Service\Description\OperationInterface::TYPE_CLASS = 'class'

◆ TYPE_DOCUMENTATION

const Guzzle\Service\Description\OperationInterface::TYPE_DOCUMENTATION = 'documentation'

Definition at line 14 of file OperationInterface.php.

◆ TYPE_MODEL

const Guzzle\Service\Description\OperationInterface::TYPE_MODEL = 'model'

◆ TYPE_PRIMITIVE

const Guzzle\Service\Description\OperationInterface::TYPE_PRIMITIVE = 'primitive'

The documentation for this interface was generated from the following file: