| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class InvalidResponse extends \SocialConnect\Common\Exception |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ResponseInterface|null |
||
| 16 | */ |
||
| 17 | protected $response; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $message |
||
| 21 | * @param ResponseInterface|null $response |
||
| 22 | */ |
||
| 23 | 70 | public function __construct($message = 'API bad response', ResponseInterface $response = null) |
|
| 28 | 70 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Get response data. |
||
| 32 | * |
||
| 33 | * @return ResponseInterface|null |
||
| 34 | */ |
||
| 35 | public function getResponse() |
||
| 40 |