| Total Complexity | 3 | 
| Total Lines | 35 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 7 | class JsonRpcInvalidRequestException extends JsonRpcException | ||
| 8 | { | ||
| 9 | const CODE = -32600; | ||
| 10 | |||
| 11 | /** @var mixed */ | ||
| 12 | private $content; | ||
| 13 | /** @var string */ | ||
| 14 | private $description; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * @param mixed $content | ||
| 18 | * @param string $description Optional description of the issue | ||
| 19 | */ | ||
| 20 | 21 | public function __construct($content, string $description = '') | |
| 21 |     { | ||
| 22 | 21 | $this->content = $content; | |
| 23 | 21 | $this->description = $description; | |
| 24 | |||
| 25 | 21 | parent::__construct(self::CODE, 'Invalid request'); | |
| 26 | } | ||
| 27 | |||
| 28 | /** | ||
| 29 | * @return mixed | ||
| 30 | */ | ||
| 31 | 1 | public function getContent() | |
| 34 | } | ||
| 35 | |||
| 36 | /** | ||
| 37 | * @return string | ||
| 38 | */ | ||
| 39 | 1 | public function getDescription() : string | |
| 42 | } | ||
| 43 | } | ||
| 44 |