| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class InvalidRequestBodyProblemException extends ProblemException |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var ViolationInterface[] |
||
| 22 | */ |
||
| 23 | private $violations; |
||
| 24 | |||
| 25 | public function __construct( |
||
| 26 | string $typeUri, |
||
| 27 | string $title, |
||
| 28 | int $statusCode, |
||
| 29 | string $message = '', |
||
| 30 | Throwable $previous = null, |
||
| 31 | ?string $instanceUri = null, |
||
| 32 | array $headers = [], |
||
| 33 | array $violations = [] |
||
| 34 | ) { |
||
| 35 | parent::__construct($typeUri, $title, $statusCode, $message, $previous, $instanceUri, $headers); |
||
| 36 | |||
| 37 | $this->violations = $violations; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getViolations(): array |
||
| 43 | } |
||
| 44 | |||
| 45 | public function jsonSerialize(): array |
||
| 51 | } |
||
| 52 | } |
||
| 53 |