Interface Yiisoft\DataResponse\DataResponseFormatterInterface
DataResponseFormatterInterface is the interface that should be implemented by data response formatters.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| format() | Returns an instance of the response with formatted response data. | Yiisoft\DataResponse\DataResponseFormatterInterface |
Method Details
Returns an instance of the response with formatted response data.
| public abstract \Psr\Http\Message\ResponseInterface format ( Yiisoft\DataResponse\DataResponse $dataResponse ) | ||
| $dataResponse | Yiisoft\DataResponse\DataResponse |
The instance of the data response. |
| return | \Psr\Http\Message\ResponseInterface |
The response with formatted response data. |
|---|---|---|
public function format(DataResponse $dataResponse): ResponseInterface;
Signup or Login in order to comment.