Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| EntityEtagConflictException | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getStatusCode | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\Common\Exceptions; |
| 3 | |
| 4 | use Apie\Core\Exceptions\ApieException; |
| 5 | use Apie\Core\Exceptions\HttpStatusCodeException; |
| 6 | |
| 7 | final class EntityEtagConflictException extends ApieException implements HttpStatusCodeException |
| 8 | { |
| 9 | public function __construct() |
| 10 | { |
| 11 | parent::__construct('The resource has changed since the supplied ETag.'); |
| 12 | } |
| 13 | |
| 14 | public function getStatusCode(): int |
| 15 | { |
| 16 | return 409; |
| 17 | } |
| 18 | } |