PHP Interface Equip\Formatter\FormatterInterface

Show file Open project: equip/framework

Public Methods

Method Description
accepts ( ) : array Get the content types this formatter can satisfy.
body ( Equip\Adr\PayloadInterface $payload ) : string Get the response body from the payload.
type ( ) : string Get the content type of the response body.

Method Details

accepts() public static method

Get the content types this formatter can satisfy.
public static accepts ( ) : array
return array

body() public method

Get the response body from the payload.
public body ( Equip\Adr\PayloadInterface $payload ) : string
$payload Equip\Adr\PayloadInterface
return string

type() public method

Get the content type of the response body.
public type ( ) : string
return string