PHP Class Tebru\Retrofit\Annotation\HttpRequest

Author: Nate Brunette ([email protected])
Inheritance: implements Tebru\Dynamo\Annotation\DynamoAnnotation
Mostra 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
getParameters ( ) : array Get the method parameters
getPath ( ) : string Get the url path
getQueries ( ) : array Get the query parameters
getType ( ) : string Returns the type of the annotation (get, post, put, etc)

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

getParameters() public method

Get the method parameters
public getParameters ( ) : array
return array

getPath() public method

Get the url path
public getPath ( ) : string
return string

getQueries() public method

Get the query parameters
public getQueries ( ) : array
return array

getType() abstract public method

Returns the type of the annotation (get, post, put, etc)
abstract public getType ( ) : string
return string