| Total Complexity | 10 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Rollbar; |
||
| 3 | class Response |
||
| 4 | { |
||
| 5 | private $status; |
||
| 6 | private $info; |
||
| 7 | private $uuid; |
||
| 8 | |||
| 9 | public function __construct($status, $info, $uuid = null) |
||
| 10 | { |
||
| 11 | $this->status = $status; |
||
| 12 | $this->info = $info; |
||
| 13 | $this->uuid = $uuid; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function getStatus() |
||
| 17 | { |
||
| 18 | return $this->status; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getInfo() |
||
| 22 | { |
||
| 23 | return $this->info; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getUuid() |
||
| 27 | { |
||
| 28 | return $this->uuid; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function wasSuccessful() |
||
| 32 | { |
||
| 33 | return $this->status >= 200 && $this->status < 300; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getOccurrenceUrl() |
||
| 45 | } |
||
| 46 | |||
| 47 | public function __toString() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |