| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class RuntimeException extends \RuntimeException |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Client instance id that threw the exception |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $instance; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create new instance |
||
| 30 | * |
||
| 31 | * @param string $instance Client instance that threw the exception |
||
| 32 | * @param string|null $message Exception message |
||
| 33 | * @param Exception|null $previous Previous Exception |
||
| 34 | */ |
||
| 35 | 13 | public function __construct($instance, $message = '', Exception $previous = null) |
|
| 39 | 13 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get instance name that threw the exception |
||
| 43 | * |
||
| 44 | * @return string Instance name |
||
| 45 | */ |
||
| 46 | 2 | public function getInstance() |
|
| 51 |