Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| LockException | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| getStatusCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Apie\Core\Exceptions; |
| 3 | |
| 4 | /** |
| 5 | * Exception thrown when a lock could not be acquired |
| 6 | */ |
| 7 | final class LockException extends ApieException implements HttpStatusCodeException |
| 8 | { |
| 9 | public function __construct() |
| 10 | { |
| 11 | parent::__construct( |
| 12 | 'Could not create lock for resource!' |
| 13 | ); |
| 14 | } |
| 15 | |
| 16 | public function getStatusCode(): int |
| 17 | { |
| 18 | return 419; |
| 19 | } |
| 20 | } |