| 1 | <?php |
||
| 17 | class Json implements Decoder |
||
| 18 | { |
||
| 19 | use MimeTypeTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var bool |
||
| 23 | */ |
||
| 24 | protected $assoc; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * JSON request decoder constructor. |
||
| 28 | * |
||
| 29 | * @param bool $assoc |
||
| 30 | */ |
||
| 31 | public function __construct($assoc = true) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | * |
||
| 43 | * @throws \RuntimeException |
||
| 44 | */ |
||
| 45 | public function decode($rawBody) |
||
| 55 | } |
||
| 56 |