PHP Class Tebru\Retrofit\Annotation\Body

Use this annotation on a service when you want to directly control the request body of a request (instead of sending in as request parameters or form-style request body).
Author: Nate Brunette ([email protected])
Inheritance: extends VariableMapper, implements Tebru\Dynamo\Annotation\DynamoAnnotation
Show file Open project: tebru/retrofit-php Class Usage Examples

Public Methods

Method Description
__construct ( array $params ) Constructor
allowMultiple ( ) : boolean Whether or not multiple annotations of this type can be added to a method
getName ( ) : string The name of the annotation or class of annotations
isJsonSerializable ( ) : boolean

Method Details

__construct() public method

Constructor
public __construct ( array $params )
$params array

allowMultiple() public method

Whether or not multiple annotations of this type can be added to a method
public allowMultiple ( ) : boolean
return boolean

getName() public method

The name of the annotation or class of annotations
public getName ( ) : string
return string

isJsonSerializable() public method

Deprecation: This method is deprecated. Retrofit now looks checks for the interface directly.
public isJsonSerializable ( ) : boolean
return boolean