| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | 1 | public static function newException(\Exception $e, $method, $path, array $params) |
|
| 55 | { |
||
| 56 | 1 | $self = new self(sprintf('Api method error: %s : %s', $method, $path), $e->getCode(), $e); |
|
| 57 | 1 | $self->method = $method; |
|
| 58 | 1 | $self->path = $path; |
|
| 59 | 1 | $self->params = $params; |
|
| 60 | |||
| 61 | 1 | return $self; |
|
| 62 | } |
||
| 63 | } |
||
| 64 |