Interface Yiisoft\DataResponse\DataResponseFormatterInterface
| Implemented by | Yiisoft\ |
|---|---|
| Deprecated since version | Use {@see \ |
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\ |
Method Details
Returns an instance of the response with formatted response data.
| public abstract \ | ||
| $dataResponse | Yiisoft\ |
The instance of the data response. |
| return | \ |
The response with formatted response data. |
|---|---|---|
public function format(DataResponse $dataResponse): ResponseInterface;
User Contributed Notes
Leave a comment
Join the conversation to share a note.