| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | trait HasJsonParameterBag |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The decoded JSON content for the request. |
||
| 16 | * |
||
| 17 | * @var \Symfony\Component\HttpFoundation\ParameterBag|null |
||
| 18 | */ |
||
| 19 | protected $json; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get the JSON payload for the request. |
||
| 23 | * |
||
| 24 | * @param string|null $key |
||
| 25 | * @param mixed $default |
||
| 26 | * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed |
||
| 27 | */ |
||
| 28 | public function json($key = null, $default = null) |
||
| 41 |