| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 0 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 2 | public function __construct( |
|
| 20 | /** |
||
| 21 | * What happened to cause this error. In most cases, this can be fixed immediately by |
||
| 22 | * changing the data you sent in the request, but in some cases you will be instructed to |
||
| 23 | * open a Support Ticket (@see SupportTicketRepositoryInterface::createTicket) or perform some |
||
| 24 | * other action before you can complete the request successfully. |
||
| 25 | */ |
||
| 26 | public readonly string $reason, |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The field in the request that caused this error. This may be a path, separated by |
||
| 30 | * periods in the case of nested fields. In some cases this may come back as "null" if the |
||
| 31 | * error is not specific to any single element of the request. |
||
| 32 | */ |
||
| 33 | public readonly ?string $field = null |
||
| 34 | 2 | ) {} |
|
| 35 | } |
||
| 36 |