| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class JSONConverter implements Converter |
||
| 10 | { |
||
| 11 | public static function getFormat(): string |
||
| 12 | { |
||
| 13 | return 'application/json'; |
||
| 14 | } |
||
| 15 | public function setHeaders(MessageInterface $message): MessageInterface |
||
| 16 | { |
||
| 17 | return $message->withHeader('Content-Type', static::getFormat()); |
||
| 18 | } |
||
| 19 | public function convert($data, array $params = []): string |
||
| 23 | } |
||
| 24 | } |
||
| 25 |