Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
23 | class Error { |
||
24 | /** |
||
25 | * Sisow error code. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | public $code; |
||
30 | |||
31 | /** |
||
32 | * Sisow error message. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | public $message; |
||
37 | |||
38 | /** |
||
39 | * Constructs and initializes an Sisow error object. |
||
40 | * |
||
41 | * @param string $code Code. |
||
42 | * @param string $message Message. |
||
43 | */ |
||
44 | 1 | public function __construct( $code, $message ) { |
|
45 | 1 | $this->code = $code; |
|
46 | 1 | $this->message = $message; |
|
47 | 1 | } |
|
48 | |||
49 | /** |
||
50 | * Create an string representation of this object. |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | 1 | public function __toString() { |
|
56 | } |
||
57 | } |
||
58 |