| 1 | <?php |
||
| 9 | class CommandMappingException extends AbstractNormalizableCommandResolverException |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @inheritdoc |
||
| 13 | * See http://jsonapi.org/examples/#error-objects-basics |
||
| 14 | * Example: |
||
| 15 | * { |
||
| 16 | * "errors": [ |
||
| 17 | * { |
||
| 18 | * "status": "406", |
||
| 19 | * "source": { "pointer": "/data/attributes/firstName" }, |
||
| 20 | * "title": "Invalid Attribute", |
||
| 21 | * "detail": "Array does not contain an element with key firstName" |
||
| 22 | * } |
||
| 23 | * ] |
||
| 24 | * } |
||
| 25 | */ |
||
| 26 | public function normalize(): array |
||
| 34 | } |
||
| 35 |