| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class JsonDecodeException extends JsonParseException |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * The json payload that failed to decode |
||
| 22 | * |
||
| 23 | * @var mixed |
||
| 24 | */ |
||
| 25 | private $payload; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor |
||
| 29 | * |
||
| 30 | * @param string $lastErrorMessage The json error message |
||
| 31 | * @param int $code The json error code |
||
| 32 | * @param mixed $payload The payload that failed to decode |
||
| 33 | */ |
||
| 34 | 1 | public function __construct(string $lastErrorMessage, int $code, $payload) |
|
| 41 | 1 | } |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Get the json payload that failed to decode |
||
| 45 | * |
||
| 46 | * @return mixed |
||
| 47 | */ |
||
| 48 | 1 | public function getPayload() |
|
| 53 |