| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 62.5% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Pz\Doctrine\Rest; |
||
| 6 | class RestResponse extends JsonResponse |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @return static |
||
| 10 | */ |
||
| 11 | 1 | public static function noContent() |
|
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return static |
||
| 18 | */ |
||
| 19 | public static function createForbidden() |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param \Error|\Exception|RestException $exception |
||
| 26 | * |
||
| 27 | * @return RestResponse |
||
| 28 | * @throws \Error|\Exception|RestException |
||
| 29 | */ |
||
| 30 | 2 | public static function exception(\Exception $exception) |
|
| 39 |