| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | final class ExpectationFailed extends AbstractApiProblem |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string[] |
||
| 13 | */ |
||
| 14 | private $failedExpectations = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string[] $failedExpectations |
||
| 18 | */ |
||
| 19 | public function __construct(array $failedExpectations, string $detail = null, string $instance = null) |
||
| 20 | { |
||
| 21 | 2 | parent::__construct( |
|
| 22 | 'https://tools.ietf.org/html/rfc2616#section-10.4.18', |
||
| 23 | 2 | 417, |
|
| 24 | 2 | 'Expectation Failed', |
|
| 25 | 2 | $detail, |
|
| 26 | 2 | $instance |
|
| 27 | ); |
||
| 28 | |||
| 29 | $this->failedExpectations = $failedExpectations; |
||
| 30 | } |
||
| 31 | 2 | ||
| 32 | 2 | /** |
|
| 33 | * @return string[] |
||
| 34 | */ |
||
| 35 | public function getFailedExpectations(): array |
||
| 38 | } |
||
| 39 | } |
||
| 40 |