| 1 | <?php |
||
| 10 | final class PreconditionFailed extends AbstractApiProblem |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string[] |
||
| 14 | */ |
||
| 15 | private $missingPreconditions = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return int |
||
| 19 | */ |
||
| 20 | 2 | public function getStatus(): int |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 2 | public function getType(): string |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param string[] $missingPreconditions |
||
| 35 | * |
||
| 36 | * @return ApiProblemInterface |
||
| 37 | */ |
||
| 38 | 1 | public function withMissingPreconditions(array $missingPreconditions): ApiProblemInterface |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @return string[] |
||
| 48 | */ |
||
| 49 | 2 | public function getMissingPreconditions(): array |
|
| 53 | } |
||
| 54 |