| Total Complexity | 8 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class GooglePlayException extends \Exception |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string|null |
||
| 13 | */ |
||
| 14 | private $url; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * GooglePlayException constructor. |
||
| 18 | * |
||
| 19 | * @param string $message |
||
| 20 | * @param int $code |
||
| 21 | * @param \Throwable $previous |
||
| 22 | */ |
||
| 23 | public function __construct($message = '', $code = 0, \Throwable $previous = null) |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $url |
||
| 33 | * @return GooglePlayException |
||
| 34 | */ |
||
| 35 | public function setUrl(string $url): self |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string|null |
||
| 43 | */ |
||
| 44 | public function getUrl(): ?string |
||
| 45 | { |
||
| 46 | return $this->url; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return ResponseInterface|null |
||
| 51 | */ |
||
| 52 | public function getResponse(): ?ResponseInterface |
||
| 59 | } |
||
| 60 | } |
||
| 61 |