| 1 | <?php |
||
| 19 | class Formatter implements MessageFormatter |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var MessageFormatter |
||
| 23 | */ |
||
| 24 | private $formatter; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param MessageFormatter $formatter |
||
| 28 | */ |
||
| 29 | 6 | public function __construct(MessageFormatter $formatter) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Formats an exception. |
||
| 36 | * |
||
| 37 | * @param Exception $exception |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 3 | public function formatException(Exception $exception) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | 1 | public function formatRequest(RequestInterface $request) |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 1 | public function formatResponse(ResponseInterface $response) |
|
| 69 | } |
||
| 70 |