Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class Error { |
||
16 | /** |
||
17 | * Error code |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | private $code; |
||
22 | |||
23 | /** |
||
24 | * Error explanation |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | private $explanation; |
||
29 | |||
30 | /** |
||
31 | * Construct and initialize an Ogone error |
||
32 | * |
||
33 | * @param string $code |
||
34 | * @param string $explanation |
||
35 | */ |
||
36 | 1 | public function __construct( $code, $explanation ) { |
|
39 | 1 | } |
|
40 | |||
41 | // @todo getters and setters |
||
42 | |||
43 | /** |
||
44 | * Create an string representation of this object |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | 1 | public function __toString() { |
|
52 |