| Total Complexity | 2 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 12 | final class ErrorCriteria implements JsonSerializable | ||
| 13 | { | ||
| 14 | private string $code; | ||
| 15 | private string $message; | ||
| 16 | private array $data; | ||
| 17 | |||
| 18 | public function __construct(string $code, string $message, array $data = []) | ||
| 19 |     { | ||
| 20 | $this->code = $code; | ||
| 21 | $this->message = $message; | ||
| 22 | $this->data = $data; | ||
| 23 | } | ||
| 24 | |||
| 25 | public function jsonSerialize(): array | ||
| 31 | ]; | ||
| 32 | } | ||
| 34 |