| Total Complexity | 4 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class Error extends \Exception { |
||
| 22 | /** |
||
| 23 | * Status. |
||
| 24 | * |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private $status; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Title. |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $title; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Detail. |
||
| 38 | * |
||
| 39 | * @var string |
||
| 40 | */ |
||
| 41 | public $detail; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Construct Mollie error. |
||
| 45 | * |
||
| 46 | * @param int $status Status. |
||
| 47 | * @param string $title Title. |
||
| 48 | * @param string $detail Detail. |
||
| 49 | */ |
||
| 50 | public function __construct( $status, $title, $detail ) { |
||
| 51 | parent::__construct( $title, $status ); |
||
| 52 | |||
| 53 | $this->status = $status; |
||
| 54 | $this->title = $title; |
||
| 55 | $this->detail = $detail; |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Get status. |
||
| 60 | * |
||
| 61 | * @return int |
||
| 62 | */ |
||
| 63 | public function get_status() { |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Get title. |
||
| 69 | * |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | public function get_title() { |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Get title. |
||
| 78 | * |
||
| 79 | * @return string |
||
| 80 | */ |
||
| 81 | public function get_detail() { |
||
| 85 |